1
1
mirror of https://github.com/nmattia/snack.git synced 2024-11-28 12:27:41 +03:00
snack/snack-lib/wrapper.nix
2018-06-22 14:45:54 +02:00

16 lines
291 B
Nix

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