nur-packages

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

package.nix (852B)


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