Merge pull request #38660 from tadfisher/btrbk

btrbk: fix SSH filter script; clean up build inputs
This commit is contained in:
Matthew Justin Bauer 2018-05-04 17:26:02 -05:00 committed by GitHub
commit 54fa425696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -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 = ''

View File

@ -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 { };