diff options
author | wahjava <ashish.is@lostca.se> | 2022-03-27 23:43:27 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 20:13:27 +0200 |
commit | 353d2713512d648f9444ce3eeee678f52b5dfec2 (patch) | |
tree | affe47794774778bc7834dcfaf9a9c8ef176eddf /pkgs/applications/version-management | |
parent | 999b4de20014a4e91d280be2bb50991d38561041 (diff) |
fnc: init at 0.10 (#165667)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/fnc/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/fnc/default.nix b/pkgs/applications/version-management/fnc/default.nix new file mode 100644 index 0000000000000..1e234dea5e3e6 --- /dev/null +++ b/pkgs/applications/version-management/fnc/default.nix @@ -0,0 +1,40 @@ +{ lib, fetchurl, stdenv, zlib, ncurses, libiconv }: + +stdenv.mkDerivation rec { + pname = "fnc"; + version = "0.10"; + + src = fetchurl { + url = "https://fnc.bsdbox.org/tarball/${version}/fnc-${version}.tar.gz"; + sha256 = "1phqxh0afky7q2qmhgjlsq1awbv4254yd8wpzxlww4p7a57cp0lk"; + }; + + buildInputs = [ libiconv ncurses zlib ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + preInstall = '' + mkdir -p $out/bin + ''; + + doInstallCheck = true; + + installCheckPhase = '' + runHook preInstallCheck + test "$($out/bin/fnc --version)" = '${pname} ${version}' + runHook postInstallCheck + ''; + + 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 ]; + }; +} |