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
43 lines
979 B
Nix
43 lines
979 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "dedup-darwin";
|
|
version = "0.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ttkb-oss";
|
|
repo = "dedup";
|
|
tag = "release-${finalAttrs.version}";
|
|
hash = "sha256-/qVrZVSVJPANMuKphbekB4p4ehjrOg6097yvjdIdl7I=";
|
|
};
|
|
|
|
patches = [
|
|
./build-date-fix.patch
|
|
./no-codesign.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
# Fix the prefix
|
|
substituteInPlace Makefile --replace-fail \
|
|
"PREFIX ?= /usr/local" "PREFIX ?= ${placeholder "out"}"
|
|
'';
|
|
|
|
preInstall = ''
|
|
# Install complains of missing directories, hence this fix.
|
|
mkdir -p $out/{bin,share/man/man1}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Darwin utility to replace duplicate file data with a copy-on-write clone";
|
|
homepage = "https://github.com/ttkb-oss/dedup";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ lib.maintainers.matteopacini ];
|
|
platforms = lib.platforms.darwin;
|
|
mainProgram = "dedup";
|
|
};
|
|
})
|