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
912 B
Nix
43 lines
912 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
autoreconfHook,
|
|
ronn,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flock";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "discoteq";
|
|
repo = "flock";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-cCpckORtogs6Nt7c5q2+z0acXAnALdLV6uzxa5ng3s4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
ronn
|
|
];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-format-specifier.patch";
|
|
url = "https://github.com/discoteq/flock/commit/408bad42eb8d76cdd0c504c2f97f21c0b424c3b1.patch";
|
|
sha256 = "sha256-YuFKXWTBu9A2kBNqkg1Oek6vDbVo/y8dB1k9Fuh3QmA";
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Cross-platform version of flock(1)";
|
|
homepage = "https://github.com/discoteq/flock";
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
mainProgram = "flock";
|
|
platforms = platforms.all;
|
|
license = licenses.isc;
|
|
};
|
|
}
|