diff options
author | Robin Gloster <mail@glob.in> | 2016-02-26 17:26:03 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-02-26 17:26:03 +0000 |
commit | 631c09bbe5946ca0e1b5a58f0ad37b7616481616 (patch) | |
tree | 0f8f6569b62183de7315236e065f7fde33e8a2f2 /pkgs/os-specific/linux/checksec | |
parent | a73762200daa5fe2c3fb9ab917fbab0c1fc34a20 (diff) |
checksec: clean up
Diffstat (limited to 'pkgs/os-specific/linux/checksec')
-rw-r--r-- | pkgs/os-specific/linux/checksec/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/checksec/default.nix b/pkgs/os-specific/linux/checksec/default.nix index b423dc3a08620..5752bbb72bc49 100644 --- a/pkgs/os-specific/linux/checksec/default.nix +++ b/pkgs/os-specific/linux/checksec/default.nix @@ -3,6 +3,7 @@ stdenv.mkDerivation rec { name = "checksec-${version}"; version = "1.5"; + src = fetchurl { url = "http://www.trapkit.de/tools/checksec.sh"; sha256 = "0iq9v568mk7g7ksa1939g5f5sx7ffq8s8n2ncvphvlckjgysgf3p"; @@ -11,9 +12,9 @@ stdenv.mkDerivation rec { patches = [ ./0001-attempt-to-modprobe-config-before-checking-kernel.patch ]; unpackPhase = '' - mkdir ${name}-${version} - cp $src ${name}-${version}/checksec.sh - cd ${name}-${version} + mkdir ${name} + cp $src ${name}/checksec.sh + cd ${name} ''; installPhase = '' @@ -32,8 +33,6 @@ stdenv.mkDerivation rec { substituteInPlace $out/bin/checksec --replace "/usr/bin/id -" "${coreutils}/bin/id -" ''; - phases = "unpackPhase patchPhase installPhase"; - meta = { description = "A tool for checking security bits on executables"; homepage = "http://www.trapkit.de/tools/checksec.html"; |