1
1
mirror of https://github.com/nmattia/snack.git synced 2024-12-03 02:05:32 +03:00
snack/snack-lib/wrapper.nix
2018-10-04 21:30:56 +03:00

16 lines
295 B
Nix

{ packageNix
, nixpkgs ? null
}:
let
pkgs =
if nixpkgs == null
then import <nixpkgs> {}
else import nixpkgs {};
snack = pkgs.snack-lib;
snackDef = import packageNix;
in
{
build = (snack.executable snackDef).build;
ghci = (snack.executable snackDef).ghci;
}