rsync/rrsync: less code duplication
- refactor the common parts all into the base.nix - add myself as maintainer
This commit is contained in:
@@ -5,17 +5,15 @@
|
||||
|
||||
assert enableACLs -> acl != null;
|
||||
|
||||
let
|
||||
base = import ./base.nix { inherit stdenv fetchurl; };
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rsync-${version}";
|
||||
version = "3.1.2";
|
||||
name = "rsync-${base.version}";
|
||||
|
||||
mainSrc = import ./src.nix { inherit fetchurl version; };
|
||||
mainSrc = base.src;
|
||||
|
||||
patchesSrc = fetchurl {
|
||||
# signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5
|
||||
url = "mirror://samba/rsync/rsync-patches-${version}.tar.gz";
|
||||
sha256 = "09i3dcl37p22dp75vlnsvx7bm05ggafnrf1zwhf2kbij4ngvxvpd";
|
||||
};
|
||||
patchesSrc = base.patches;
|
||||
|
||||
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
||||
patches = stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
||||
@@ -25,11 +23,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags = "--with-nobody-group=nogroup";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://rsync.samba.org/;
|
||||
meta = base.meta // {
|
||||
description = "A fast incremental file transfer utility";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ simons ehmry ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user