1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-29 09:42:35 +03:00
niv/default.nix

18 lines
456 B
Nix
Raw Normal View History

2019-01-18 01:00:48 +03:00
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