mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
bup: move to pkgs/by-name and reformat
(cherry picked from commit 881aca9e20
)
This commit is contained in:
parent
3eff4070df
commit
a8f54fe6ea
@ -1,6 +1,15 @@
|
||||
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
||||
, perl, pandoc, python3, git
|
||||
, par2cmdline ? null, par2Support ? true
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
perl,
|
||||
pandoc,
|
||||
python3,
|
||||
git,
|
||||
|
||||
par2Support ? true,
|
||||
par2cmdline ? null,
|
||||
}:
|
||||
|
||||
assert par2Support -> par2cmdline != null;
|
||||
@ -8,8 +17,17 @@ assert par2Support -> par2cmdline != null;
|
||||
let
|
||||
version = "0.33.4";
|
||||
|
||||
pythonDeps = with python3.pkgs; [ setuptools tornado ]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ pyxattr pylibacl fuse ];
|
||||
pythonDeps =
|
||||
with python3.pkgs;
|
||||
[
|
||||
setuptools
|
||||
tornado
|
||||
]
|
||||
++ lib.optionals (!stdenv.isDarwin) [
|
||||
pyxattr
|
||||
pylibacl
|
||||
fuse
|
||||
];
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@ -23,8 +41,15 @@ stdenv.mkDerivation {
|
||||
hash = "sha256-9rWzHONcu4W/JcnDUGPbuGksroODbhdL6bNF+3Dd2ag=";
|
||||
};
|
||||
|
||||
buildInputs = [ git python3 ];
|
||||
nativeBuildInputs = [ pandoc perl makeWrapper ];
|
||||
buildInputs = [
|
||||
git
|
||||
python3
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pandoc
|
||||
perl
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postPatch = "patchShebangs .";
|
||||
|
||||
@ -37,7 +62,8 @@ stdenv.mkDerivation {
|
||||
"LIBDIR=$(out)/lib/bup"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration -Wno-error=implicit-int";
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
|
||||
"-Wno-error=implicit-function-declaration -Wno-error=implicit-int";
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/bup \
|
@ -6472,8 +6472,6 @@ with pkgs;
|
||||
|
||||
bumpver = callPackage ../applications/version-management/bumpver { };
|
||||
|
||||
bup = callPackage ../tools/backup/bup { };
|
||||
|
||||
bupstash = darwin.apple_sdk_11_0.callPackage ../tools/backup/bupstash { };
|
||||
|
||||
burp = callPackage ../tools/backup/burp { };
|
||||
|
Loading…
Reference in New Issue
Block a user