nur-packages

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

package.nix (918B)


      1 {
      2   lib,
      3   buildGoModule,
      4   fetchFromSourcehut,
      5   scdoc,
      6 }:
      7 
      8 buildGoModule (finalAttrs: {
      9   pname = "comitium";
     10   version = "1.8.2";
     11 
     12   __structuredAttrs = true;
     13 
     14   src = fetchFromSourcehut {
     15     owner = "~nytpu";
     16     repo = "comitium";
     17     rev = "v${finalAttrs.version}";
     18     hash = "sha256-kydT2hLPb2Oj1/o+1N9Cvrdi4+DKi2tHX35oY6yGUU8=";
     19   };
     20 
     21   vendorHash = "sha256-wzT5A55ZFCa34fDUWPuG11XWBpCk4QLZamYwMGKLprM=";
     22 
     23   nativeBuildInputs = [ scdoc ];
     24 
     25   buildPhase = ''
     26     runHook preBuild
     27     make COMMIT=tarball
     28     runHook postBuild
     29   '';
     30 
     31   installPhase = ''
     32     runHook preInstall
     33     make PREFIX=$out install
     34     runHook postInstall
     35   '';
     36 
     37   meta = {
     38     description = "A feed aggregator for gemini supporting many formats and protocols";
     39     homepage = "https://git.sr.ht/~nytpu/comitium";
     40     license = lib.licenses.agpl3Only;
     41     maintainers = [ lib.maintainers.sikmir ];
     42     mainProgram = "comitium";
     43   };
     44 })