Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 806 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "gokrazy"; 9 version = "0-unstable-2024-09-27"; 10 11 src = fetchFromGitHub { 12 owner = "gokrazy"; 13 repo = "tools"; 14 rev = "6bec690fe5cdabca7aeec52257118d4ff7d7b060"; 15 hash = "sha256-EJ0qEsXhBssWUrzyhtL0So0Yaxzr843QNwoE0tppeuk="; 16 }; 17 18 vendorHash = "sha256-B/46VGCbLE/6LgW2wfKoHI9cyveE6hE/AfAZzIG5J+g="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X=main.Version=${version}" 24 ]; 25 26 subPackages = [ "cmd/gok" ]; 27 28 meta = with lib; { 29 description = "Turn your Go program(s) into an appliance running on the Raspberry Pi 3, Pi 4, Pi Zero 2 W, or amd64 PCs"; 30 homepage = "https://github.com/gokrazy/gokrazy"; 31 license = licenses.bsd3; 32 maintainers = with maintainers; [ shayne ]; 33 mainProgram = "gok"; 34 }; 35}