nur-packages

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

default.nix (825B)


      1 {
      2   lib,
      3   stdenv,
      4   buildGoModule,
      5   fetchFromSourcehut,
      6   scdoc,
      7   installShellFiles,
      8 }:
      9 
     10 buildGoModule rec {
     11   pname = "gelim";
     12   version = "0.9.3";
     13 
     14   src = fetchFromSourcehut {
     15     owner = "~hedy";
     16     repo = "gelim";
     17     rev = "v${version}";
     18     hash = "sha256-xFOiE0OLaJ4WK+I8oNXNk7feP3nXp9wvH0bkNnBK1Yg=";
     19   };
     20 
     21   nativeBuildInputs = [
     22     scdoc
     23     installShellFiles
     24   ];
     25 
     26   vendorHash = "sha256-sWNPNZYcm296zhz57/NCaAlQxJ+Z1zzd/Y+KiLxZ46E=";
     27 
     28   ldflags = [ "-X main.Version=${version}" ];
     29 
     30   postBuild = ''
     31     scdoc < gelim.1.scd > gelim.1
     32   '';
     33 
     34   postInstall = ''
     35     installManPage gelim.1
     36   '';
     37 
     38   meta = {
     39     description = "A minimalist line-mode smolnet client written in go";
     40     homepage = "https://sr.ht/~hedy/gelim/";
     41     license = lib.licenses.mit;
     42     maintainers = [ lib.maintainers.sikmir ];
     43   };
     44 }