nixpkgs/pkgs/by-name/di/didder/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
771 B
Nix
Raw Normal View History

2023-07-25 15:04:11 +00:00
{ lib, buildGoModule, fetchFromGitHub, pandoc }:
2023-04-18 16:29:44 +00:00
buildGoModule rec {
pname = "didder";
2023-12-21 09:08:42 +00:00
version = "1.3.0";
2023-04-18 16:29:44 +00:00
src = fetchFromGitHub {
owner = "makew0rld";
repo = pname;
rev = "v${version}";
2023-12-21 09:08:42 +00:00
hash = "sha256-wYAudEyOLxbNfk4M720absGkuWXcaBPyBAcmBNBaaWU=";
2023-04-18 16:29:44 +00:00
};
2023-12-21 09:08:42 +00:00
vendorHash = "sha256-UD90N3nE3H9GSdVhGt1zfCk8BhPaToKGu4i0zP0Lb3Q=";
2023-04-18 16:29:44 +00:00
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 =
"An extensive, fast, and accurate command-line image dithering tool";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ ehmry ];
2023-11-23 02:51:17 +00:00
mainProgram = "didder";
2023-04-18 16:29:44 +00:00
};
}