nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 996 B view raw
1{ 2 lib, 3 buildGoModule, 4 installShellFiles, 5 fetchFromGitHub, 6 nix-update-script, 7}: 8 9buildGoModule rec { 10 pname = "exercism"; 11 version = "3.5.8"; 12 13 src = fetchFromGitHub { 14 owner = "exercism"; 15 repo = "cli"; 16 tag = "v${version}"; 17 hash = "sha256-vYbOagP3RwqD2+x0Mvve66Xm88jeRVzHU7nsN432j6k="; 18 }; 19 20 vendorHash = "sha256-xY3C3emqtPIKyxIN9aEkrLXhTxWNmo0EJXNZVtbtIvs="; 21 22 doCheck = false; 23 24 subPackages = [ "./exercism" ]; 25 26 nativeBuildInputs = [ installShellFiles ]; 27 28 passthru.updateScript = nix-update-script { }; 29 30 postInstall = '' 31 installShellCompletion --cmd exercism \ 32 --bash shell/exercism_completion.bash \ 33 --fish shell/exercism.fish \ 34 --zsh shell/exercism_completion.zsh 35 ''; 36 37 meta = { 38 inherit (src.meta) homepage; 39 description = "Go based command line tool for exercism.io"; 40 license = lib.licenses.mit; 41 maintainers = [ 42 lib.maintainers.rbasso 43 lib.maintainers.nobbz 44 ]; 45 mainProgram = "exercism"; 46 }; 47}