default.nix (847B)
1 { 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 buildGoModule, 6 pkg-config, 7 portaudio, 8 testers, 9 musig, 10 }: 11 12 buildGoModule rec { 13 pname = "musig"; 14 version = "1.0.0"; 15 16 src = fetchFromGitHub { 17 owner = "sfluor"; 18 repo = "musig"; 19 rev = version; 20 hash = "sha256-FL9FkNOR6/WKRKFroFE3otBM5AYFvyj71QySY3EOQMA="; 21 }; 22 23 vendorHash = "sha256-5V1TojK+/AqurYY1PaeK8dkXV+6gL7IGKaiuyJvsQUE="; 24 25 nativeBuildInputs = [ pkg-config ]; 26 27 buildInputs = [ portaudio ]; 28 29 ldflags = [ "-X main.VERSION=${version}" ]; 30 31 passthru.tests.version = testers.testVersion { package = musig; }; 32 33 meta = { 34 description = "A shazam like tool to store songs fingerprints and retrieve them"; 35 homepage = "https://github.com/sfluor/musig"; 36 license = lib.licenses.mit; 37 maintainers = [ lib.maintainers.sikmir ]; 38 broken = stdenv.isDarwin; 39 }; 40 }