zstxtns-utils: don't put runtime deps into buildInputs

This commit is contained in:
zseri 2021-03-23 13:16:19 +01:00
parent 2c93f270cd
commit bfa344e273
No known key found for this signature in database
GPG key ID: 229E63AE5644A96D

View file

@ -1,5 +1,4 @@
{ bash { coreutils
, coreutils
, fetchurl , fetchurl
, gnugrep , gnugrep
, lib , lib
@ -18,7 +17,6 @@ stdenvNoCC.mkDerivation rec {
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bash coreutils gnugrep moreutils ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -27,8 +25,8 @@ stdenvNoCC.mkDerivation rec {
''; '';
postInstall = '' postInstall = ''
wrapProgram $out/bin/zstxtns-merge --prefix PATH ":" "${lib.makeBinPath [coreutils gnugrep moreutils]}" wrapProgram $out/bin/zstxtns-merge --set PATH "${lib.makeBinPath [coreutils gnugrep moreutils]}"
wrapProgram $out/bin/zstxtns-unmerge --prefix PATH ":" "${lib.makeBinPath [coreutils gnugrep]}" wrapProgram $out/bin/zstxtns-unmerge --set PATH "${lib.makeBinPath [coreutils gnugrep]}"
''; '';
meta = with lib; { meta = with lib; {