nixpkgs/pkgs/applications/misc/nanoblogger/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
712 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ fetchurl, lib, stdenv, bash }:
2014-08-30 07:14:19 +00:00
stdenv.mkDerivation rec {
version = "3.5-rc1";
pname = "nanoblogger";
2014-08-30 07:14:19 +00:00
src = fetchurl {
url = "mirror://sourceforge/nanoblogger/${pname}-${version}.tar.gz";
2014-08-30 07:14:19 +00:00
sha256 = "09mv52a5f0h3das8x96irqyznm69arfskx472b7w3b9q4a2ipxbq";
};
buildInputs = [ ];
installPhase = ''
mkdir -p $out/bin
cp -r * $out
2021-01-01 13:46:40 +00:00
cat > $out/bin/nb << EOF
2014-08-30 07:14:19 +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 = "https://nanoblogger.sourceforge.net/";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl2;
mainProgram = "nb";
2021-01-15 05:42:41 +00:00
platforms = lib.platforms.unix;
2014-08-30 07:14:19 +00:00
};
}