nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 83 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchzip, 5 which, 6 attr, 7 e2fsprogs, 8 curl, 9 libargon2, 10 librsync, 11 libthreadar, 12 gpgme, 13 libgcrypt, 14 openssl, 15 bzip2, 16 lz4, 17 lzo, 18 xz, 19 zlib, 20 zstd, 21}: 22 23stdenv.mkDerivation rec { 24 version = "2.8.2"; 25 pname = "dar"; 26 27 src = fetchzip { 28 url = "mirror://sourceforge/dar/${pname}-${version}.tar.gz"; 29 sha256 = "sha256-x8WTJxpYzxvcN5Y6bAKE+JQ7n9dAbPkEosVnaFe2HoA="; 30 }; 31 32 outputs = [ 33 "out" 34 "dev" 35 ]; 36 37 nativeBuildInputs = [ which ]; 38 39 buildInputs = [ 40 curl 41 librsync 42 libthreadar 43 gpgme 44 libargon2 45 libgcrypt 46 openssl 47 bzip2 48 lz4 49 lzo 50 xz 51 zlib 52 zstd 53 ] 54 ++ lib.optionals stdenv.hostPlatform.isLinux [ 55 attr 56 e2fsprogs 57 ]; 58 59 configureFlags = [ 60 "--disable-birthtime" 61 "--disable-upx" 62 "--disable-dar-static" 63 "--disable-build-html" 64 "--enable-threadar" 65 ]; 66 67 hardeningDisable = [ "format" ]; 68 69 enableParallelBuilding = true; 70 71 postInstall = '' 72 # Disable html help 73 rm -r "$out"/share/dar 74 ''; 75 76 meta = { 77 homepage = "http://dar.linux.free.fr"; 78 description = "Disk ARchiver, allows backing up files into indexed archives"; 79 maintainers = with lib.maintainers; [ izorkin ]; 80 license = lib.licenses.gpl2Only; 81 platforms = lib.platforms.unix; 82 }; 83}