nur-packages

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

default.nix (932B)


      1 {
      2   lib,
      3   stdenv,
      4   buildGoModule,
      5   fetchFromSourcehut,
      6   scdoc,
      7   installShellFiles,
      8 }:
      9 
     10 buildGoModule rec {
     11   pname = "astronaut";
     12   version = "0.1.3";
     13 
     14   src = fetchFromSourcehut {
     15     owner = "~adnano";
     16     repo = "astronaut";
     17     rev = version;
     18     hash = "sha256-YkaeJMabEHGcyYeEyiYXR2K8YKX7Qqo5mb1XzvKT2+U=";
     19   };
     20 
     21   nativeBuildInputs = [
     22     scdoc
     23     installShellFiles
     24   ];
     25 
     26   vendorHash = "sha256-4obhPl3Yvlrsf+C0vFpS/EOPEK7Kwm3GgbZ/ociihD8=";
     27 
     28   ldflags = [ "-X main.ShareDir=${placeholder "out"}/share/astronaut" ];
     29 
     30   postBuild = ''
     31     scdoc < docs/astronaut.1.scd > docs/astronaut.1
     32   '';
     33 
     34   postInstall = ''
     35     installManPage docs/astronaut.1
     36     install -Dm644 config/*.conf -t $out/share/astronaut
     37   '';
     38 
     39   meta = {
     40     description = "A Gemini browser for the terminal";
     41     homepage = "https://sr.ht/~adnano/astronaut";
     42     license = lib.licenses.gpl3Only;
     43     maintainers = [ lib.maintainers.sikmir ];
     44   };
     45 }