checksec: 2.5.0 -> 2.6.0

+42 -22
+42 -22
pkgs/os-specific/linux/checksec/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, makeWrapper, file, findutils 2 - , binutils-unwrapped, glibc, coreutils, sysctl, openssl 3 }: 4 5 stdenv.mkDerivation rec { 6 pname = "checksec"; 7 - version = "2.5.0"; 8 9 src = fetchFromGitHub { 10 owner = "slimm609"; 11 repo = "checksec.sh"; 12 rev = version; 13 - sha256 = "sha256-GxWXocz+GCEssRrIQP6E9hjVIhVh2EmZrefELxQlV1Q="; 14 }; 15 16 - patches = [ ./0001-attempt-to-modprobe-config-before-checking-kernel.patch ]; 17 - nativeBuildInputs = [ makeWrapper ]; 18 19 - installPhase = let 20 - path = lib.makeBinPath [ 21 - findutils file binutils-unwrapped sysctl openssl 22 - ]; 23 - in '' 24 - mkdir -p $out/bin 25 - install checksec $out/bin 26 - substituteInPlace $out/bin/checksec --replace /lib/libc.so.6 ${glibc.out}/lib/libc.so.6 27 - substituteInPlace $out/bin/checksec --replace "/usr/bin/id -" "${coreutils}/bin/id -" 28 - wrapProgram $out/bin/checksec \ 29 - --prefix PATH : ${path} 30 - ''; 31 32 meta = with lib; { 33 - description = "A tool for checking security bits on executables"; 34 - homepage = "https://www.trapkit.de/tools/checksec/"; 35 - license = licenses.bsd3; 36 - platforms = platforms.linux; 37 maintainers = with maintainers; [ thoughtpolice globin ]; 38 }; 39 }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , makeWrapper 5 + , file 6 + , findutils 7 + , binutils-unwrapped 8 + , glibc 9 + , coreutils 10 + , sysctl 11 + , openssl 12 }: 13 14 stdenv.mkDerivation rec { 15 pname = "checksec"; 16 + version = "2.6.0"; 17 18 src = fetchFromGitHub { 19 owner = "slimm609"; 20 repo = "checksec.sh"; 21 rev = version; 22 + hash = "sha256-BWtchWXukIDSLJkFX8M/NZBvfi7vUE2j4yFfS0KEZDo="; 23 }; 24 25 + patches = [ 26 + ./0001-attempt-to-modprobe-config-before-checking-kernel.patch 27 + ]; 28 29 + nativeBuildInputs = [ 30 + makeWrapper 31 + ]; 32 + 33 + installPhase = 34 + let 35 + path = lib.makeBinPath [ 36 + findutils 37 + file 38 + binutils-unwrapped 39 + sysctl 40 + openssl 41 + ]; 42 + in 43 + '' 44 + mkdir -p $out/bin 45 + install checksec $out/bin 46 + substituteInPlace $out/bin/checksec --replace /lib/libc.so.6 ${glibc.out}/lib/libc.so.6 47 + substituteInPlace $out/bin/checksec --replace "/usr/bin/id -" "${coreutils}/bin/id -" 48 + wrapProgram $out/bin/checksec \ 49 + --prefix PATH : ${path} 50 + ''; 51 52 meta = with lib; { 53 + description = "Tool for checking security bits on executables"; 54 + homepage = "https://www.trapkit.de/tools/checksec/"; 55 + license = licenses.bsd3; 56 + platforms = platforms.linux; 57 maintainers = with maintainers; [ thoughtpolice globin ]; 58 }; 59 }