nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1# The program `nuke-refs' created by this derivation replaces all
2# references to the Nix store in the specified files by a non-existent
3# path (/nix/store/eeee...). This is useful for getting rid of
4# dependencies that you know are not actually needed at runtime.
5
6{
7 lib,
8 replaceVarsWith,
9 perl,
10 signingUtils,
11 stdenvNoCC,
12 shell ? stdenvNoCC.shell,
13}:
14replaceVarsWith {
15 src = ./nuke-refs;
16 replacements = {
17 inherit perl; # FIXME: get rid of perl dependency.
18 inherit (builtins) storeDir;
19 shell = lib.getBin shell + (shell.shellPath or "");
20 signingUtils = lib.optionalString (
21 stdenvNoCC.targetPlatform.isDarwin && stdenvNoCC.targetPlatform.isAarch64
22 ) signingUtils;
23 };
24 dir = "bin";
25 isExecutable = true;
26 meta.mainProgram = "nuke-refs";
27}