From 11e2a04e8ad6e04c4078dda97074b48339aa06d8 Mon Sep 17 00:00:00 2001 From: zendo Date: Fri, 15 Apr 2022 17:51:58 +0800 Subject: [PATCH 1/2] ydict: init at 2.2.0 --- pkgs/applications/misc/ydict/default.nix | 28 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/applications/misc/ydict/default.nix diff --git a/pkgs/applications/misc/ydict/default.nix b/pkgs/applications/misc/ydict/default.nix new file mode 100644 index 000000000000..49370870f692 --- /dev/null +++ b/pkgs/applications/misc/ydict/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "ydict"; + version = "2.2.0"; + + src = fetchFromGitHub { + owner = "TimothyYe"; + repo = "ydict"; + rev = "v${version}"; + sha256 = "sha256-zhjsXZsRk0UNijjqjGjZh4TiPxAM5p+ic3JMx2wrPeY="; + }; + + vendorSha256 = "sha256-O6czDfKD18rGVMIZv6II09oQu1w0ijQRuZRGt2gj9Cs="; + + ldflags = [ "-s" "-w" "-X=main.Version=${version}" ]; + + # has no tests + doCheck = false; + + meta = with lib; { + description = "A command-line Chinese dictionary"; + homepage = "https://github.com/TimothyYe/ydict"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ zendo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2bb6b6c348b1..6c32beff166e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30436,6 +30436,8 @@ with pkgs; ydiff = with python3.pkgs; toPythonApplication ydiff; + ydict = callPackage ../applications/misc/ydict {}; + yed = callPackage ../applications/graphics/yed {}; yeetgif = callPackage ../applications/graphics/yeetgif { }; From 18f40b72b59ce0341fd90f20956f300aba9c5309 Mon Sep 17 00:00:00 2001 From: zendo Date: Sun, 17 Apr 2022 07:20:13 +0800 Subject: [PATCH 2/2] Add zendo to maintainers --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1bb79d0c44e6..a8a3ddcd8f3d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14228,6 +14228,12 @@ github = "zbioe"; githubId = 7332055; }; + zendo = { + name = "zendo"; + email = "linzway@qq.com"; + github = "zendo"; + githubId = 348013; + }; zenithal = { name = "zenithal"; email = "i@zenithal.me";