Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, buildGoModule, fetchFromGitHub, pandoc }: 2 3buildGoModule rec { 4 pname = "didder"; 5 version = "1.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "makew0rld"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-S1j2TdV0XCrSc7Ua+SdY3JJoWgnFuAMGhUinTKO2Xh4="; 12 }; 13 14 vendorHash = "sha256-TEp1YrQquqdEMVvZaNsEB1H/DZsTYmRL257RjQF2JqM="; 15 16 nativeBuildInputs = [ pandoc ]; 17 18 postBuild = '' 19 make man 20 ''; 21 22 postInstall = '' 23 mkdir -p $out/share/man/man1 24 gzip -c didder.1 > $out/share/man/man1/didder.1.gz 25 ''; 26 27 meta = src.meta // { 28 description = 29 "An extensive, fast, and accurate command-line image dithering tool"; 30 license = lib.licenses.gpl3; 31 maintainers = with lib.maintainers; [ ehmry ]; 32 }; 33}