mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #38660 from tadfisher/btrbk
btrbk: fix SSH filter script; clean up build inputs
This commit is contained in:
commit
54fa425696
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, coreutils, bash, btrfs-progs, openssh, perl, perlPackages
|
||||
, asciidoc-full, makeWrapper }:
|
||||
, utillinux, asciidoc, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "btrbk-${version}";
|
||||
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "04ahfm52vcf1w0c2km0wdgj2jpffp45bpawczmygcg8fdcm021lp";
|
||||
};
|
||||
|
||||
buildInputs = with perlPackages; [ asciidoc-full makeWrapper perl DateCalc ];
|
||||
nativeBuildInputs = [ asciidoc makeWrapper ];
|
||||
|
||||
buildInputs = with perlPackages; [ perl DateCalc ];
|
||||
|
||||
preInstall = ''
|
||||
for f in $(find . -name Makefile); do
|
||||
@ -27,6 +29,10 @@ stdenv.mkDerivation rec {
|
||||
--replace "/bin/date" "${coreutils}/bin/date" \
|
||||
--replace "/bin/echo" "${coreutils}/bin/echo" \
|
||||
--replace '$btrbk' 'btrbk'
|
||||
|
||||
# Fix SSH filter script
|
||||
sed -i '/^export PATH/d' ssh_filter_btrbk.sh
|
||||
substituteInPlace ssh_filter_btrbk.sh --replace logger ${utillinux}/bin/logger
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
|
@ -891,7 +891,9 @@ with pkgs;
|
||||
|
||||
btrfs-dedupe = callPackage ../tools/filesystems/btrfs-dedupe/default.nix {};
|
||||
|
||||
btrbk = callPackage ../tools/backup/btrbk { };
|
||||
btrbk = callPackage ../tools/backup/btrbk {
|
||||
asciidoc = asciidoc-full;
|
||||
};
|
||||
|
||||
buildtorrent = callPackage ../tools/misc/buildtorrent { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user