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