d6ca5ed287
Done with ```sh regex='\s*(nativeBuild|build|check|nativeCheck)Inputs *= *\[ *\];' rg "^$regex$" -l | xe sd "\n\n$regex\n" "\n" rg "^$regex$" -l | xe sd "\n$regex\n" "\n" rg "^$regex$" -l | xe sd "\n$regex\n" "\n" ```
30 lines
690 B
Nix
30 lines
690 B
Nix
{ fetchurl, lib, stdenv, bash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.5-rc1";
|
|
pname = "nanoblogger";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/nanoblogger/${pname}-${version}.tar.gz";
|
|
sha256 = "09mv52a5f0h3das8x96irqyznm69arfskx472b7w3b9q4a2ipxbq";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://nanoblogger.sourceforge.net/";
|
|
license = lib.licenses.gpl2;
|
|
mainProgram = "nb";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|