mirror of
https://github.com/nmattia/snack.git
synced 2024-11-28 12:27:41 +03:00
16 lines
291 B
Nix
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;
|
|
}
|