1
1
mirror of https://github.com/nmattia/snack.git synced 2024-12-11 11:04:03 +03:00
snack/snack-lib/wrapper.nix

16 lines
295 B
Nix
Raw Normal View History

2018-09-27 19:56:16 +03:00
{ packageNix
2018-06-17 16:54:57 +03:00
, nixpkgs ? null
}:
let
pkgs =
if nixpkgs == null
then import <nixpkgs> {}
else import nixpkgs {};
snack = pkgs.snack-lib;
2018-09-27 19:56:16 +03:00
snackDef = import packageNix;
2018-06-17 16:54:57 +03:00
in
{
2018-06-22 15:45:54 +03:00
build = (snack.executable snackDef).build;
ghci = (snack.executable snackDef).ghci;
2018-06-17 16:54:57 +03:00
}