Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildGoModule rec { 9 pname = "apprun-cli"; 10 version = "0.3.2"; 11 12 src = fetchFromGitHub { 13 owner = "fujiwara"; 14 repo = "apprun-cli"; 15 tag = "v${version}"; 16 hash = "sha256-k8ZFDWIuUjYqDIm7JdiqjeF2qaPX0SaOgqk4oud09Lc="; 17 }; 18 19 vendorHash = "sha256-WQRDkxL52RQmZn2aeE13pU4YGk8UjuZtS1lTNb53/hQ="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 ]; 25 26 passthru.updateScript = nix-update-script { }; 27 28 meta = { 29 description = "CLI for sakura AppRun"; 30 homepage = "https://github.com/fujiwara/apprun-cli"; 31 changelog = "https://github.com/fujiwara/apprun-cli/blob/v${version}/CHANGELOG.md"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ natsukium ]; 34 mainProgram = "apprun-cli"; 35 }; 36}