citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

default.nix (734B)


      1 { stdenv
      2 , makeWrapper
      3 , lib
      4 , pandoc
      5 , fetchFromGitHub
      6 , man
      7 }:
      8 stdenv.mkDerivation rec {
      9   name = "mandown-${version}";
     10   version = "0.9.0";
     11 
     12   src = fetchFromGitHub {
     13     rev = "5a26782ad935e4316f1d99e185d385750c5bc5cb";
     14     owner = "jb55";
     15     repo = "mandown";
     16     sha256 = "0mb06gbbi3ah026sffh3jcjny7b6g4acx2bp4b4kdjp4kq0ihy66";
     17   };
     18 
     19   makeFlags = "PREFIX=$(out)";
     20 
     21   buildInputs = [ pandoc man makeWrapper ];
     22 
     23   meta = with lib; {
     24     description = "Render markdown as a manpage";
     25     homepage = "https://github.com/jb55/mandown";
     26     maintainers = with maintainers; [ jb55 ];
     27     license = licenses.gpl2;
     28   };
     29 
     30   installPhase = ''
     31     wrapProgram "$out/bin/mandown" \
     32       --prefix PATH : "${man}/bin:${pandoc}/bin"
     33   '';
     34 }