nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (824B)


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