mirror of
https://github.com/nmattia/snack.git
synced 2024-11-10 22:30:34 +03:00
11 lines
282 B
Nix
11 lines
282 B
Nix
{ pkgs ? import ./nix {} }:
|
|
|
|
{ snack-lib = import ./snack/default.nix { inherit pkgs; };
|
|
snack-exe = pkgs.writeScriptBin
|
|
"snack"
|
|
(builtins.replaceStrings
|
|
["NIX_BUILD=nix-build"]
|
|
["NIX_BUILD=${pkgs.nix}/bin/nix-build"]
|
|
(builtins.readFile ./bin/snack));
|
|
}
|