2021-01-15 22:18:51 +00:00
|
|
|
{ fetchurl, lib, stdenv, bash }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.5-rc1";
|
|
|
|
pname = "nanoblogger";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/nanoblogger/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "09mv52a5f0h3das8x96irqyznm69arfskx472b7w3b9q4a2ipxbq";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r * $out
|
2021-01-15 22:18:51 +00:00
|
|
|
cat > $out/bin/nb << EOF
|
2020-04-24 23:36:52 +00:00
|
|
|
#!${bash}/bin/bash
|
|
|
|
$out/nb "\$@"
|
|
|
|
EOF
|
|
|
|
chmod 755 $out/bin/nb
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Small weblog engine written in Bash for the command line";
|
|
|
|
homepage = "http://nanoblogger.sourceforge.net/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "nb";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|