nur-packages

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

default.nix (819B)


      1 {
      2   lib,
      3   buildGoModule,
      4   fetchgit,
      5   scdoc,
      6 }:
      7 
      8 buildGoModule rec {
      9   pname = "comitium";
     10   version = "1.8.1";
     11 
     12   src = fetchgit {
     13     url = "git://git.nytpu.com/comitium";
     14     rev = "v${version}";
     15     hash = "sha256-rtsC9SAddRdmu82BRrZOEOq53ZYSOUGGZJDdTYs4WKY=";
     16   };
     17 
     18   vendorHash = "sha256-6xtXTmSqaN2me0kyRk948ASNNtv7P5XBvtv9UWjNHoo=";
     19 
     20   nativeBuildInputs = [ scdoc ];
     21 
     22   buildPhase = ''
     23     runHook preBuild
     24     make COMMIT=tarball
     25     runHook postBuild
     26   '';
     27 
     28   installPhase = ''
     29     runHook preInstall
     30     make PREFIX=$out install
     31     runHook postInstall
     32   '';
     33 
     34   meta = {
     35     description = "A feed aggregator for gemini supporting many formats and protocols";
     36     homepage = "https://git.nytpu.com/comitium/about/";
     37     license = lib.licenses.agpl3Only;
     38     maintainers = [ lib.maintainers.sikmir ];
     39   };
     40 }