nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 25 lines 767 B view raw
1# The program `remove-references-to' created by this derivation replaces all 2# references to the given Nix store paths in the specified files by a 3# non-existent 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 signingUtils, 10 stdenvNoCC, 11 shell ? stdenvNoCC.shell, 12}: 13replaceVarsWith { 14 src = ./remove-references-to; 15 replacements = { 16 inherit (builtins) storeDir; 17 shell = lib.getBin shell + (shell.shellPath or ""); 18 signingUtils = lib.optionalString ( 19 stdenvNoCC.targetPlatform.isDarwin && stdenvNoCC.targetPlatform.isAarch64 20 ) signingUtils; 21 }; 22 dir = "bin"; 23 isExecutable = true; 24 meta.mainProgram = "remove-references-to"; 25}