1
1
mirror of https://github.com/nmattia/snack.git synced 2024-11-10 22:30:34 +03:00
snack/default.nix
2018-05-31 23:25:21 +02:00

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));
}