fnc: init at 0.10 (#165667)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
999b4de200
commit
353d271351
2 changed files with 42 additions and 0 deletions
40
pkgs/applications/version-management/fnc/default.nix
Normal file
40
pkgs/applications/version-management/fnc/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -25734,6 +25734,8 @@ with pkgs;
|
|||
|
||||
fmsynth = callPackage ../applications/audio/fmsynth { };
|
||||
|
||||
fnc = callPackage ../applications/version-management/fnc { };
|
||||
|
||||
focuswriter = libsForQt5.callPackage ../applications/editors/focuswriter { };
|
||||
|
||||
foliate = callPackage ../applications/office/foliate { };
|
||||
|
|
Loading…
Reference in a new issue