nur-packages

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

default.nix (862B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   zig_0_11,
      6   scdoc,
      7   installShellFiles,
      8 }:
      9 
     10 stdenv.mkDerivation (finalAttrs: {
     11   pname = "gmi2html";
     12   version = "0.6.0";
     13 
     14   src = fetchFromGitHub {
     15     owner = "shtanton";
     16     repo = "gmi2html";
     17     tag = "v${finalAttrs.version}";
     18     hash = "sha256-J71QThRwV8lpGJndqVT+tsekO+CVU8piSpjAn9jwfDI=";
     19   };
     20 
     21   nativeBuildInputs = [
     22     zig_0_11.hook
     23     scdoc
     24     installShellFiles
     25   ];
     26 
     27   postBuild = ''
     28     scdoc < doc/gmi2html.scdoc > doc/gmi2html.1
     29   '';
     30 
     31   doCheck = true;
     32 
     33   checkPhase = ''
     34     sh tests/test.sh
     35   '';
     36 
     37   postInstall = ''
     38     installManPage doc/gmi2html.1
     39   '';
     40 
     41   meta = {
     42     description = "Translate text/gemini into HTML";
     43     homepage = "https://github.com/shtanton/gmi2html";
     44     license = lib.licenses.mit;
     45     maintainers = [ lib.maintainers.sikmir ];
     46     platforms = lib.platforms.unix;
     47   };
     48 })