nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

ydict: add mpg123 to PATH

zendo 2ce5fca4 354568dc

+19 -4
+19 -4
pkgs/applications/misc/ydict/default.nix
··· 1 - { lib, fetchFromGitHub, buildGoModule }: 1 + { lib 2 + , fetchFromGitHub 3 + , buildGoModule 4 + , makeWrapper 5 + , mpg123 6 + }: 2 7 3 8 buildGoModule rec { 4 9 pname = "ydict"; ··· 18 13 19 14 vendorSha256 = "sha256-c5nQVQd4n978kFAAKcx5mX2Jz16ZOhS8iL/oxS1o5xs="; 20 15 21 - ldflags = [ "-s" "-w" "-X=main.Version=${version}" ]; 16 + ldflags = [ 17 + "-s" 18 + "-w" 19 + "-X=main.Version=${version}" 20 + ]; 21 + 22 + nativeBuildInputs = [ makeWrapper ]; 23 + 24 + preFixup = '' 25 + wrapProgram $out/bin/${pname} \ 26 + --prefix PATH ":" "${lib.makeBinPath [ mpg123 ]}"; 27 + ''; 22 28 23 29 # has no tests 24 30 doCheck = false; 25 31 26 32 meta = with lib; { 27 - description = "A command-line Chinese dictionary"; 33 + description = "Yet another command-line Youdao Chinese dictionary"; 28 34 homepage = "https://github.com/TimothyYe/ydict"; 29 35 license = licenses.mit; 30 - platforms = platforms.linux; 31 36 maintainers = with maintainers; [ zendo ]; 32 37 }; 33 38 }