diff options
| author | Tom Harley | 2021-07-30 20:01:38 +0000 |
|---|---|---|
| committer | Tom Harley | 2021-07-31 19:30:45 +0000 |
| commit | 8da668abd8051b2e27bb82aa8c56ba56ed5ae6b0 (patch) | |
| tree | c431a276d5d0b18cdd9fc25cd31c78bf5d477dc3 | |
| parent | Display inbox/outbox contents correctly (diff) | |
| download | swap-8da668abd8051b2e27bb82aa8c56ba56ed5ae6b0.tar.gz swap-8da668abd8051b2e27bb82aa8c56ba56ed5ae6b0.zip | |
Support dev environment via nix-shell
shell.nix now contains the tools used for development/testing, since it is invoked when nix-shell is run.
| -rw-r--r-- | default.nix | 7 | ||||
| -rw-r--r-- | shell.nix | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/default.nix b/default.nix index 4f10756..8a2586e 100644 --- a/default.nix +++ b/default.nix @@ -21,7 +21,8 @@ let python' = python3.withPackages my-python-packages; -in stdenv.mkDerivation { - name = "trseubgti"; - buildInputs = [ python' ag nixfmt ]; +in { }: +stdenv.mkDerivation { + name = "swap"; + buildInputs = [ python' ]; } diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..3a6b76a --- /dev/null +++ b/shell.nix @@ -0,0 +1,4 @@ +with import <nixpkgs> { }; + +(callPackage ./default.nix { }).overrideAttrs +(old: { nativeBuildInputs = [ ag nixfmt pandoc jq ]; }) |
