From b25aee82db1430165bd26c13df245e28fa421813 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Fri, 8 Sep 2023 11:05:47 +0700 Subject: [PATCH] build: default and example shell Co-authored-by: Alexander Groleau --- shell.default.nix | 5 +++++ shell.example.nix | 10 ++++++++++ shell.nix | 8 -------- 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 shell.default.nix create mode 100644 shell.example.nix delete mode 100644 shell.nix diff --git a/shell.default.nix b/shell.default.nix new file mode 100644 index 0000000..e641d7d --- /dev/null +++ b/shell.default.nix @@ -0,0 +1,5 @@ +{pkgs, ...}: { + packages = with pkgs; [ + rustup + ]; +} diff --git a/shell.example.nix b/shell.example.nix new file mode 100644 index 0000000..19569fb --- /dev/null +++ b/shell.example.nix @@ -0,0 +1,10 @@ +let + pkgs = import {}; + defaultShellArgs = import ./shell.default.nix {inherit pkgs;}; + myShellArgs = { + packages = with pkgs; [ + # whatever + ]; + }; +in + pkgs.mkShell (pkgs.lib.recursiveUpdate defaultShellArgs myShellArgs) diff --git a/shell.nix b/shell.nix deleted file mode 100644 index a8edb71..0000000 --- a/shell.nix +++ /dev/null @@ -1,8 +0,0 @@ -let - pkgs = import {}; -in - pkgs.mkShell { - packages = with pkgs; [ - rustup - ]; - }