diff options
author | Pierre Bourdon <delroth@gmail.com> | 2023-12-24 23:59:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 23:59:16 +0100 |
commit | 64938f6e078b9972fc5c11fad531b042fb3041f5 (patch) | |
tree | 02104f2a35a82ee3ce6f652290af52d8120e8154 | |
parent | f42f362fee852395a98b2c9e2dcfa5564eea9d57 (diff) | |
parent | 35ca6891195a3ddad5e54877a57bd29f6875fe35 (diff) |
Merge pull request #254995 from SuperSandro2000/wrappers
nixos/wrapper: add basename of the wrapped program to the wrappers name to easily identify it
-rw-r--r-- | nixos/modules/security/wrappers/wrapper.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/security/wrappers/wrapper.nix b/nixos/modules/security/wrappers/wrapper.nix index 27d46c630af54..ca4b27bff1801 100644 --- a/nixos/modules/security/wrappers/wrapper.nix +++ b/nixos/modules/security/wrappers/wrapper.nix @@ -1,8 +1,8 @@ { stdenv, unsecvars, linuxHeaders, sourceProg, debug ? false }: # For testing: -# $ nix-build -E 'with import <nixpkgs> {}; pkgs.callPackage ./wrapper.nix { parentWrapperDir = "/run/wrappers"; debug = true; }' +# $ nix-build -E 'with import <nixpkgs> {}; pkgs.callPackage ./wrapper.nix { sourceProg = "${pkgs.hello}/bin/hello"; debug = true; }' stdenv.mkDerivation { - name = "security-wrapper"; + name = "security-wrapper-${baseNameOf sourceProg}"; buildInputs = [ linuxHeaders ]; dontUnpack = true; CFLAGS = [ |