Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 885 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7buildGoModule rec { 8 pname = "nom"; 9 version = "2.13.0"; 10 11 src = fetchFromGitHub { 12 owner = "guyfedwards"; 13 repo = "nom"; 14 tag = "v${version}"; 15 hash = "sha256-dGQDxjvB5OX4ot22zt2zFu3T3h/clSRlfxhCpkPRePU="; 16 }; 17 18 vendorHash = "sha256-d5KTDZKfuzv84oMgmsjJoXGO5XYLVKxOB5XehqgRvYw="; 19 20 ldflags = [ 21 "-X 'main.version=${version}'" 22 ]; 23 24 passthru.updateScript = nix-update-script { }; 25 26 meta = { 27 homepage = "https://github.com/guyfedwards/nom"; 28 changelog = "https://github.com/guyfedwards/nom/releases/tag/v${version}"; 29 description = "RSS reader for the terminal"; 30 platforms = lib.platforms.linux ++ lib.platforms.darwin; 31 license = lib.licenses.gpl3Only; 32 maintainers = with lib.maintainers; [ 33 nadir-ishiguro 34 matthiasbeyer 35 ]; 36 mainProgram = "nom"; 37 }; 38}