commit 11963269e9b2752c04263fcdabc7061412d003b7
parent 95e676854164a2576db3c6bb1ce55746b4f8d0af
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Wed, 4 Aug 2021 11:20:09 +0300
Add didder
Diffstat:
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -227,6 +227,7 @@ lib.makeScope newScope (
cfiles = callPackage ./misc/cfiles { };
csvquote = callPackage ./misc/csvquote { };
csvtools = callPackage ./misc/csvtools { };
+ didder = callPackage ./misc/didder { };
docker-reg-tool = callPackage ./misc/docker-reg-tool { };
docx2csv = callPackage ./misc/docx2csv { };
gef = callPackage ./misc/gef { };
diff --git a/pkgs/misc/didder/default.nix b/pkgs/misc/didder/default.nix
@@ -0,0 +1,29 @@
+{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
+
+buildGoModule rec {
+ pname = "didder";
+ version = "1.1.0";
+
+ src = fetchFromGitHub {
+ owner = "makeworld-the-better-one";
+ repo = pname;
+ rev = "v${version}";
+ hash = "sha256-3tK7UaHzARlrhT1hzlekwSqclrDwoSv+vHzpSPTmxrs=";
+ };
+
+ vendorSha256 = "sha256-U82CJIFZOkvKeiIHDAy1+AAg/mecSA+QzeQh+70X8Mo=";
+
+ nativeBuildInputs = [ installShellFiles ];
+
+ postInstall = ''
+ installManPage didder.1
+ '';
+
+ meta = with lib; {
+ description = "An extensive, fast, and accurate command-line image dithering tool";
+ inherit (src.meta) homepage;
+ license = licenses.gpl3Only;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}