mirror of
https://github.com/nmattia/niv.git
synced 2024-11-07 22:36:53 +03:00
18 lines
456 B
Nix
18 lines
456 B
Nix
|
with { fetch = import ./nix/fetch.nix; };
|
||
|
let
|
||
|
|
||
|
# 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
|