e2fsprogs: move scripts to separate output (#431959)

authored by Arian van Putten and committed by GitHub e923af99 7f352f80

+24
+24
pkgs/by-name/e2/e2fsprogs/package.nix
··· 14 e2fsprogs, 15 runCommand, 16 libarchive, 17 }: 18 19 stdenv.mkDerivation rec { 20 pname = "e2fsprogs"; 21 version = "1.47.3"; 22 23 src = fetchurl { 24 url = "mirror://kernel/linux/kernel/people/tytso/e2fsprogs/v${version}/e2fsprogs-${version}.tar.xz"; ··· 42 "out" 43 "man" 44 "info" 45 ] 46 ++ lib.optionals withFuse [ "fuse2fs" ]; 47 48 depsBuildBuild = [ buildPackages.stdenv.cc ]; 49 nativeBuildInputs = [ 50 pkg-config ··· 54 libuuid 55 gettext 56 libarchive 57 ] 58 ++ lib.optionals withFuse [ fuse3 ]; 59 ··· 86 if [ -f $out/lib/${pname}/e2scrub_all_cron ]; then 87 mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/ 88 fi 89 '' 90 + lib.optionalString withFuse '' 91 mkdir -p $fuse2fs/bin ··· 93 ''; 94 95 enableParallelBuilding = true; 96 97 passthru.tests = { 98 simple-filesystem = runCommand "e2fsprogs-create-fs" { } ''
··· 14 e2fsprogs, 15 runCommand, 16 libarchive, 17 + bash, 18 + bashNonInteractive, 19 }: 20 21 stdenv.mkDerivation rec { 22 pname = "e2fsprogs"; 23 version = "1.47.3"; 24 + 25 + __structuredAttrs = true; 26 27 src = fetchurl { 28 url = "mirror://kernel/linux/kernel/people/tytso/e2fsprogs/v${version}/e2fsprogs-${version}.tar.xz"; ··· 46 "out" 47 "man" 48 "info" 49 + "scripts" 50 ] 51 ++ lib.optionals withFuse [ "fuse2fs" ]; 52 53 + strictDeps = true; 54 + 55 depsBuildBuild = [ buildPackages.stdenv.cc ]; 56 nativeBuildInputs = [ 57 pkg-config ··· 61 libuuid 62 gettext 63 libarchive 64 + bash 65 ] 66 ++ lib.optionals withFuse [ fuse3 ]; 67 ··· 94 if [ -f $out/lib/${pname}/e2scrub_all_cron ]; then 95 mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/ 96 fi 97 + 98 + moveToOutput bin/mk_cmds "$scripts" 99 + moveToOutput bin/compile_et "$scripts" 100 + moveToOutput sbin/e2scrub "$scripts" 101 + moveToOutput sbin/e2scrub_all "$scripts" 102 '' 103 + lib.optionalString withFuse '' 104 mkdir -p $fuse2fs/bin ··· 106 ''; 107 108 enableParallelBuilding = true; 109 + 110 + outputChecks = { 111 + bin.disallowedRequisites = [ 112 + bash 113 + bashNonInteractive 114 + ]; 115 + out.disallowedRequisites = [ 116 + bash 117 + bashNonInteractive 118 + ]; 119 + }; 120 121 passthru.tests = { 122 simple-filesystem = runCommand "e2fsprogs-create-fs" { } ''