Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 libpcap, 6 versionCheckHook, 7 nix-update-script, 8}: 9buildGoModule (finalAttrs: { 10 pname = "bsky-cli"; 11 version = "0.0.74"; 12 13 src = fetchFromGitHub { 14 owner = "mattn"; 15 repo = "bsky"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-pLgPQYL4+BErqRe09Pj94gLt/OoxEt9r4n+gZtZSS4Y="; 18 }; 19 20 vendorHash = "sha256-f9LZHJ5yXWUUh6HdF2JPEBucWuVud3YX5l2MkHs6UXc="; 21 22 buildInputs = [ 23 libpcap 24 ]; 25 26 ldflags = [ 27 "-s" 28 "-w" 29 ]; 30 31 doInstallCheck = true; 32 versionCheckProgram = "${placeholder "out"}/bin/bsky"; 33 versionCheckProgramArg = "--version"; 34 nativeBuildInputs = [ versionCheckHook ]; 35 36 passthru.updateScript = nix-update-script { }; 37 38 meta = { 39 description = "Cli application for bluesky social"; 40 homepage = "https://github.com/mattn/bsky"; 41 changelog = "https://github.com/mattn/bsky/releases/tag/v${finalAttrs.version}"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ isabelroses ]; 44 mainProgram = "bsky"; 45 }; 46})