depot/third_party/nixpkgs/pkgs/by-name/di/didder/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

34 lines
771 B
Nix

{ lib, buildGoModule, fetchFromGitHub, pandoc }:
buildGoModule rec {
pname = "didder";
version = "1.3.0";
src = fetchFromGitHub {
owner = "makew0rld";
repo = pname;
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 =
"An extensive, fast, and accurate command-line image dithering tool";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ ehmry ];
mainProgram = "didder";
};
}