mirror of
https://github.com/nmattia/niv.git
synced 2024-09-19 11:27:40 +03:00
Clean up nix files
This commit is contained in:
parent
e5e65efd09
commit
e1231e1341
19
default.nix
19
default.nix
@ -1,17 +1,2 @@
|
|||||||
with { fetch = import ./nix/fetch.nix; };
|
with { pkgs = import ./nix; };
|
||||||
let
|
pkgs.snack-lib.inferHPackBuild ./package.yaml
|
||||||
|
|
||||||
# The (pinned) Nixpkgs where the original packages are sourced from
|
|
||||||
pkgs = import fetch.nixpkgs {};
|
|
||||||
|
|
||||||
# The list of packages to be installed
|
|
||||||
shellPackages = [ snack-exe ];
|
|
||||||
|
|
||||||
snack-exe = (import fetch.snack).snack-exe;
|
|
||||||
snack-lib = (import fetch.snack).snack-lib;
|
|
||||||
in
|
|
||||||
if pkgs.lib.inNixShell
|
|
||||||
then pkgs.mkShell
|
|
||||||
{ buildInputs = shellPackages;
|
|
||||||
}
|
|
||||||
else snack-lib.inferHPackBuild ./package.yaml
|
|
||||||
|
12
nix/default.nix
Normal file
12
nix/default.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
with { fetch = import ./fetch.nix; };
|
||||||
|
import fetch.nixpkgs
|
||||||
|
{ overlays =
|
||||||
|
[ (self: super:
|
||||||
|
{
|
||||||
|
snack-exe = (import fetch.snack).snack-exe;
|
||||||
|
snack-lib = (import fetch.snack).snack-lib;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
] ;
|
||||||
|
config = { } ;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user