My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/text/txt2tags/default.nix

35 lines
1001 B

{ lib, stdenv, fetchurl, python2 }:
stdenv.mkDerivation rec {
version = "2.6";
pname = "txt2tags";
dontBuild = true;
# Python script, needs the interpreter
propagatedBuildInputs = [ python2 ];
installPhase = ''
mkdir -p "$out/bin"
mkdir -p "$out/share/doc"
mkdir -p "$out/share/man/man1/"
sed '1s|/usr/bin/env python|${python2}/bin/python|' < txt2tags > "$out/bin/txt2tags"
chmod +x "$out/bin/txt2tags"
gzip - < doc/manpage.man > "$out/share/man/man1/txt2tags.1.gz"
cp doc/userguide.pdf "$out/share/doc"
cp -r extras/ samples/ test/ "$out/share"
'';
src = fetchurl {
url = "http://txt2tags.googlecode.com/files/${pname}-${version}.tgz";
sha256 = "0p5hql559pk8v5dlzgm75yrcxwvz4z30f1q590yzng0ghvbnf530";
};
meta = {
homepage = "https://txt2tags.org/";
description = "A KISS markup language";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ kovirobi ];
platforms = with lib.platforms; unix;
};
}