Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fetchpatch,
|
|
librsync,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "btar";
|
|
version = "1.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://vicerveza.homeunix.net/~viric/soft/btar/btar-${version}.tar.gz";
|
|
sha256 = "0miklk4bqblpyzh1bni4x6lqn88fa8fjn15x1k1n8bxkx60nlymd";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://build.opensuse.org/public/source/openSUSE:Factory/btar/btar-librsync.patch?rev=2";
|
|
sha256 = "1awqny9489vsfffav19s73xxg26m7zrhvsgf1wxb8c2izazwr785";
|
|
})
|
|
];
|
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
# gcc-10. Otherwise build fails as:
|
|
# ld: listindex.o:/build/btar-1.1.1/loadindex.h:12: multiple definition of
|
|
# `ptr'; main.o:/build/btar-1.1.1/loadindex.h:12: first defined here
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
buildInputs = [ librsync ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tar-compatible block-based archiver";
|
|
mainProgram = "btar";
|
|
license = lib.licenses.gpl3Plus;
|
|
homepage = "https://briantracy.xyz/writing/btar.html";
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|