mirror of
https://github.com/nmattia/snack.git
synced 2024-12-03 02:05:32 +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;
|
|
}
|