2015-06-09 12:37:36 +00:00
|
|
|
{ stdenv, fetchurl, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.6";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "txt2tags";
|
2015-06-09 12:37:36 +00:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
# Python script, needs the interpreter
|
|
|
|
propagatedBuildInputs = [ python ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/share/doc"
|
|
|
|
mkdir -p "$out/share/man/man1/"
|
|
|
|
sed '1s|/usr/bin/env python|${python}/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 {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://txt2tags.googlecode.com/files/${pname}-${version}.tgz";
|
2015-06-09 12:37:36 +00:00
|
|
|
sha256 = "0p5hql559pk8v5dlzgm75yrcxwvz4z30f1q590yzng0ghvbnf530";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://txt2tags.org/";
|
2015-06-09 12:37:36 +00:00
|
|
|
description = "A KISS markup language";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ kovirobi ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2015-06-09 12:37:36 +00:00
|
|
|
};
|
|
|
|
}
|