2022-05-18 14:49:53 +00:00
|
|
|
{ lib, fetchurl, fetchpatch, stdenv, zlib, ncurses, libiconv }:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fnc";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.13";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fnc.bsdbox.org/tarball/${version}/fnc-${version}.tar.gz";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "126aklsjfqmrj0f9p1g6sdlqhwnbfhyn0lq2c9pidfnhppa7sz95";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libiconv ncurses zlib ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [
|
2023-02-16 17:41:37 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=maybe-uninitialized"
|
2023-03-04 12:14:45 +00:00
|
|
|
]);
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Interactive ncurses browser for Fossil repositories";
|
|
|
|
longDescription = ''
|
|
|
|
An interactive ncurses browser for Fossil repositories.
|
|
|
|
|
|
|
|
fnc uses libfossil to create a fossil ui experience in the terminal.
|
|
|
|
'';
|
|
|
|
homepage = "https://fnc.bsdbox.org";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ abbe ];
|
|
|
|
};
|
|
|
|
}
|