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