Skip to content

Commit

Permalink
Merge pull request #4 from mightyiam/default-shell
Browse files Browse the repository at this point in the history
build: default and example shell
  • Loading branch information
mightyiam authored Sep 8, 2023
2 parents 3d609ca + b25aee8 commit 2960781
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions shell.default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{pkgs, ...}: {
packages = with pkgs; [
rustup
];
}
10 changes: 10 additions & 0 deletions shell.example.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let
pkgs = import <nixpkgs> {};
defaultShellArgs = import ./shell.default.nix {inherit pkgs;};
myShellArgs = {
packages = with pkgs; [
# whatever
];
};
in
pkgs.mkShell (pkgs.lib.recursiveUpdate defaultShellArgs myShellArgs)
8 changes: 0 additions & 8 deletions shell.nix

This file was deleted.

0 comments on commit 2960781

Please sign in to comment.