Merge pull request #117348 from zseri/unbuild

authored by

Sandro and committed by
GitHub
d68bffb2 eae2d174

+19 -28
+13 -18
pkgs/tools/archivers/rpm2targz/default.nix
··· 10 10 , zstd 11 11 }: 12 12 13 - let 14 - shdeps = [ 15 - bzip2 16 - coreutils 17 - cpio 18 - gnutar 19 - gzip 20 - xz 21 - zstd 22 - ]; 23 - 24 - in stdenv.mkDerivation rec { 13 + stdenv.mkDerivation rec { 25 14 pname = "rpm2targz"; 26 15 version = "2021.03.16"; 27 16 ··· 31 20 hash = "sha256-rcV+o9V2wWKznqSW2rA8xgnpQ02kpK4te6mYvLRC5vQ="; 32 21 }; 33 22 34 - buildInputs = shdeps; 35 - 36 - postPatch = '' 23 + postPatch = let 24 + shdeps = [ 25 + bzip2 26 + coreutils 27 + cpio 28 + gnutar 29 + gzip 30 + xz 31 + zstd 32 + ]; 33 + in '' 37 34 substituteInPlace rpm2targz --replace "=\"rpmoffset\"" "=\"$out/bin/rpmoffset\"" 38 35 # rpm2targz relies on the executable name 39 36 # to guess what compressor it should use ··· 41 38 sed -i -e '2iexport PATH="${lib.makeBinPath shdeps}"' rpm2targz 42 39 ''; 43 40 44 - preBuild = '' 45 - makeFlagsArray+=(prefix=$out) 46 - ''; 41 + installFlags = [ "prefix=$(out)" ]; 47 42 48 43 meta = with lib; { 49 44 description = "Convert a .rpm file to a .tar.gz archive";
+2 -2
pkgs/tools/networking/zs-apc-spdu-ctl/default.nix
··· 20 20 }; 21 21 22 22 nativeBuildInputs = [ cmake ]; 23 - buildInputs = [ fping libowlevelzs net-snmp ]; 23 + buildInputs = [ libowlevelzs net-snmp ]; 24 24 25 25 postPatch = '' 26 26 substituteInPlace src/confent.cxx \ 27 - --replace /usr/sbin/fping "${lib.makeBinPath [fping]}/fping" 27 + --replace /usr/sbin/fping "${fping}/bin/fping" 28 28 ''; 29 29 30 30 meta = with lib; {
+1 -3
pkgs/tools/networking/zs-wait4host/default.nix
··· 1 - { bash, coreutils, fetchurl, fping, lib, stdenvNoCC }: 1 + { coreutils, fetchurl, fping, lib, stdenvNoCC }: 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "zs-wait4host"; ··· 8 8 url = "https://ytrizja.de/distfiles/${pname}-${version}.tar.gz"; 9 9 sha256 = "9F1264BDoGlRR7bWlRXhfyvxWio4ydShKmabUQEIz9I="; 10 10 }; 11 - 12 - buildInputs = [ bash coreutils fping ]; 13 11 14 12 postPatch = '' 15 13 for i in zs-wait4host zs-wait4host-inf; do
+3 -5
pkgs/tools/text/zstxtns-utils/default.nix
··· 1 - { bash 2 - , coreutils 1 + { coreutils 3 2 , fetchurl 4 3 , gnugrep 5 4 , lib ··· 18 17 }; 19 18 20 19 nativeBuildInputs = [ makeWrapper ]; 21 - buildInputs = [ bash coreutils gnugrep moreutils ]; 22 20 23 21 installPhase = '' 24 22 runHook preInstall ··· 27 25 ''; 28 26 29 27 postInstall = '' 30 - wrapProgram $out/bin/zstxtns-merge --prefix PATH ":" "${lib.makeBinPath [coreutils gnugrep moreutils]}" 31 - wrapProgram $out/bin/zstxtns-unmerge --prefix PATH ":" "${lib.makeBinPath [coreutils gnugrep]}" 28 + wrapProgram $out/bin/zstxtns-merge --set PATH "${lib.makeBinPath [coreutils gnugrep moreutils]}" 29 + wrapProgram $out/bin/zstxtns-unmerge --set PATH "${lib.makeBinPath [coreutils gnugrep]}" 32 30 ''; 33 31 34 32 meta = with lib; {