Skip to content

Commit

Permalink
build: default and example shell
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Groleau <[email protected]>
  • Loading branch information
mightyiam and proofconstruction committed Sep 8, 2023
1 parent 3d609ca commit b25aee8
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 b25aee8

Please sign in to comment.