Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitLab }: 2 3buildGoModule rec { 4 pname = "bluewalker"; 5 version = "0.3.1"; 6 7 src = fetchFromGitLab { 8 owner = "jtaimisto"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-wAzBlCczsLfHboGYIsyN7dGwz52CMw+L3XQ0njfLVR0="; 12 }; 13 14 vendorSha256 = "189qs6vmx63vwsjmc4qgf1y8xjsi7x6l1f5c3kd8j8jnagl26z4h"; 15 16 ldflags = [ 17 "-w" 18 "-s" 19 ]; 20 21 meta = with lib; { 22 description = "Simple command line Bluetooth LE scanner"; 23 homepage = "https://gitlab.com/jtaimisto/bluewalker"; 24 changelog = "https://gitlab.com/jtaimisto/bluewalker/-/tags/v${version}"; 25 license = licenses.bsd2; 26 maintainers = with maintainers; [ cimm ]; 27 platforms = platforms.linux; 28 }; 29}