2014-08-30 08:14:19 +01:00
|
|
|
{ fetchurl, stdenv, bash }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.5-rc1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nanoblogger";
|
2014-08-30 08:14:19 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/nanoblogger/${pname}-${version}.tar.gz";
|
2014-08-30 08:14:19 +01:00
|
|
|
sha256 = "09mv52a5f0h3das8x96irqyznm69arfskx472b7w3b9q4a2ipxbq";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r * $out
|
|
|
|
cat > $out/bin/nb << EOF
|
|
|
|
#!${bash}/bin/bash
|
|
|
|
$out/nb "\$@"
|
|
|
|
EOF
|
|
|
|
chmod 755 $out/bin/nb
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Small weblog engine written in Bash for the command line";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://nanoblogger.sourceforge.net/";
|
2014-08-30 08:14:19 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-08-30 08:14:19 +01:00
|
|
|
};
|
|
|
|
}
|