linenoise: init at 1.0.10
Closes https://github.com/NixOS/nixpkgs/pull/19117
This commit is contained in:
parent
e13aea41e0
commit
643d5f80fd
@ -277,6 +277,7 @@
|
||||
mounium = "Katona László <muoniurn@gmail.com>";
|
||||
MP2E = "Cray Elliott <MP2E@archlinux.us>";
|
||||
mpscholten = "Marc Scholten <marc@mpscholten.de>";
|
||||
mpsyco = "Francis St-Amour <fr.st-amour@gmail.com>";
|
||||
msackman = "Matthew Sackman <matthew@wellquite.org>";
|
||||
mschristiansen = "Mikkel Christiansen <mikkel@rheosystems.com>";
|
||||
msteen = "Matthijs Steen <emailmatthijs@gmail.com>";
|
||||
|
13
pkgs/development/libraries/linenoise/create-pkg-config-file.sh
Executable file
13
pkgs/development/libraries/linenoise/create-pkg-config-file.sh
Executable file
@ -0,0 +1,13 @@
|
||||
cat <<EOF > linenoise.pc
|
||||
prefix=$out
|
||||
exec_prefix=\${prefix}
|
||||
libdir=\${exec_prefix}/lib
|
||||
includedir=\${prefix}/include
|
||||
|
||||
Name: linenoise
|
||||
Description: A minimal, zero-config, BSD licensed, readline replacement.
|
||||
Requires:
|
||||
Version: 1.0.10
|
||||
Cflags: -I\${includedir}/ \${prefix}/src/linenoise.c
|
||||
|
||||
EOF
|
30
pkgs/development/libraries/linenoise/default.nix
Normal file
30
pkgs/development/libraries/linenoise/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "linenoise-${version}";
|
||||
version = "1.0.10"; # Its version 1.0 plus 10 commits
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "antirez";
|
||||
repo = "linenoise";
|
||||
rev = "c894b9e59f02203dbe4e2be657572cf88c4230c3";
|
||||
sha256 = "0wasql7ph5g473zxhc2z47z3pjp42q0dsn4gpijwzbxawid71b4w";
|
||||
};
|
||||
|
||||
buildPhase = ./create-pkg-config-file.sh;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{lib/pkgconfig,src,include}
|
||||
cp linenoise.c $out/src/
|
||||
cp linenoise.h $out/include/
|
||||
cp linenoise.pc $out/lib/pkgconfig/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/antirez/linenoise;
|
||||
description = "A minimal, zero-config, BSD licensed, readline replacement";
|
||||
maintainers = with stdenv.lib.maintainers; [ mpsyco ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
license = stdenv.lib.licenses.free;
|
||||
};
|
||||
}
|
@ -8249,6 +8249,8 @@ in
|
||||
|
||||
lightlocker = callPackage ../misc/screensavers/light-locker { };
|
||||
|
||||
linenoise = callPackage ../development/libraries/linenoise { };
|
||||
|
||||
lirc = callPackage ../development/libraries/lirc { };
|
||||
|
||||
liquidfun = callPackage ../development/libraries/liquidfun { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user