1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-16 01:47:08 +03:00
niv/default.nix
2019-01-17 23:00:48 +01:00

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