nur-packages

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

default.nix (823B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   buildGoModule,
      5 }:
      6 
      7 buildGoModule {
      8   pname = "dict2rest";
      9   version = "0-unstable-2016-12-05";
     10 
     11   src = fetchFromGitHub {
     12     owner = "felix";
     13     repo = "go-dict2rest";
     14     rev = "b049991a46a2f619344bd6e915745703864d0134";
     15     hash = "sha256-v5vBsdGQZYHSPEiBgSezKqaev1sTXnP27Tn47z1ebjQ=";
     16   };
     17 
     18   patches = [ ./go.mod.patch ];
     19 
     20   postPatch = ''
     21     rm -rf vendor
     22   '';
     23 
     24   vendorHash = "sha256-vwqD9XsxutwMalJiPZa//aYw88wK0ih6zGcOSxoOjec=";
     25 
     26   doCheck = false;
     27 
     28   meta = {
     29     description = "A simple proxy service providing an HTTP interface to a Dict protocol (RFC 2229) server";
     30     homepage = "https://github.com/felix/go-dict2rest";
     31     license = lib.licenses.mit;
     32     maintainers = [ lib.maintainers.sikmir ];
     33     platforms = lib.platforms.unix;
     34     mainProgram = "go-dict2rest";
     35   };
     36 }