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
38 lines
723 B
Nix
38 lines
723 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pandoc,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "didder";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "makew0rld";
|
|
repo = "didder";
|
|
rev = "v${version}";
|
|
hash = "sha256-wYAudEyOLxbNfk4M720absGkuWXcaBPyBAcmBNBaaWU=";
|
|
};
|
|
|
|
vendorHash = "sha256-UD90N3nE3H9GSdVhGt1zfCk8BhPaToKGu4i0zP0Lb3Q=";
|
|
|
|
nativeBuildInputs = [ pandoc ];
|
|
|
|
postBuild = ''
|
|
make man
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/man/man1
|
|
gzip -c didder.1 > $out/share/man/man1/didder.1.gz
|
|
'';
|
|
|
|
meta = src.meta // {
|
|
description = "Extensive, fast, and accurate command-line image dithering tool";
|
|
license = lib.licenses.gpl3;
|
|
mainProgram = "didder";
|
|
};
|
|
}
|