mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Merge pull request #210492 from zendo/fix/ydict
This commit is contained in:
commit
32907ff26a
@ -1,4 +1,9 @@
|
|||||||
{ lib, fetchFromGitHub, buildGoModule }:
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildGoModule
|
||||||
|
, makeWrapper
|
||||||
|
, mpg123
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ydict";
|
pname = "ydict";
|
||||||
@ -13,16 +18,26 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "sha256-c5nQVQd4n978kFAAKcx5mX2Jz16ZOhS8iL/oxS1o5xs=";
|
vendorSha256 = "sha256-c5nQVQd4n978kFAAKcx5mX2Jz16ZOhS8iL/oxS1o5xs=";
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X=main.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
wrapProgram $out/bin/${pname} \
|
||||||
|
--prefix PATH ":" "${lib.makeBinPath [ mpg123 ]}";
|
||||||
|
'';
|
||||||
|
|
||||||
# has no tests
|
# has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A command-line Chinese dictionary";
|
description = "Yet another command-line Youdao Chinese dictionary";
|
||||||
homepage = "https://github.com/TimothyYe/ydict";
|
homepage = "https://github.com/TimothyYe/ydict";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ zendo ];
|
maintainers = with maintainers; [ zendo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user