lol

linenoise: init at 1.0.10

Closes https://github.com/NixOS/nixpkgs/pull/19117

authored by

Francis St-Amour and committed by
Joachim Fasting
643d5f80 e13aea41

+46
+1
lib/maintainers.nix
··· 277 mounium = "Katona László <muoniurn@gmail.com>"; 278 MP2E = "Cray Elliott <MP2E@archlinux.us>"; 279 mpscholten = "Marc Scholten <marc@mpscholten.de>"; 280 msackman = "Matthew Sackman <matthew@wellquite.org>"; 281 mschristiansen = "Mikkel Christiansen <mikkel@rheosystems.com>"; 282 msteen = "Matthijs Steen <emailmatthijs@gmail.com>";
··· 277 mounium = "Katona László <muoniurn@gmail.com>"; 278 MP2E = "Cray Elliott <MP2E@archlinux.us>"; 279 mpscholten = "Marc Scholten <marc@mpscholten.de>"; 280 + mpsyco = "Francis St-Amour <fr.st-amour@gmail.com>"; 281 msackman = "Matthew Sackman <matthew@wellquite.org>"; 282 mschristiansen = "Mikkel Christiansen <mikkel@rheosystems.com>"; 283 msteen = "Matthijs Steen <emailmatthijs@gmail.com>";
+13
pkgs/development/libraries/linenoise/create-pkg-config-file.sh
···
··· 1 + cat <<EOF > linenoise.pc 2 + prefix=$out 3 + exec_prefix=\${prefix} 4 + libdir=\${exec_prefix}/lib 5 + includedir=\${prefix}/include 6 + 7 + Name: linenoise 8 + Description: A minimal, zero-config, BSD licensed, readline replacement. 9 + Requires: 10 + Version: 1.0.10 11 + Cflags: -I\${includedir}/ \${prefix}/src/linenoise.c 12 + 13 + EOF
+30
pkgs/development/libraries/linenoise/default.nix
···
··· 1 + { stdenv, fetchFromGitHub }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "linenoise-${version}"; 5 + version = "1.0.10"; # Its version 1.0 plus 10 commits 6 + 7 + src = fetchFromGitHub { 8 + owner = "antirez"; 9 + repo = "linenoise"; 10 + rev = "c894b9e59f02203dbe4e2be657572cf88c4230c3"; 11 + sha256 = "0wasql7ph5g473zxhc2z47z3pjp42q0dsn4gpijwzbxawid71b4w"; 12 + }; 13 + 14 + buildPhase = ./create-pkg-config-file.sh; 15 + 16 + installPhase = '' 17 + mkdir -p $out/{lib/pkgconfig,src,include} 18 + cp linenoise.c $out/src/ 19 + cp linenoise.h $out/include/ 20 + cp linenoise.pc $out/lib/pkgconfig/ 21 + ''; 22 + 23 + meta = { 24 + homepage = https://github.com/antirez/linenoise; 25 + description = "A minimal, zero-config, BSD licensed, readline replacement"; 26 + maintainers = with stdenv.lib.maintainers; [ mpsyco ]; 27 + platforms = stdenv.lib.platforms.unix; 28 + license = stdenv.lib.licenses.free; 29 + }; 30 + }
+2
pkgs/top-level/all-packages.nix
··· 8249 8250 lightlocker = callPackage ../misc/screensavers/light-locker { }; 8251 8252 lirc = callPackage ../development/libraries/lirc { }; 8253 8254 liquidfun = callPackage ../development/libraries/liquidfun { };
··· 8249 8250 lightlocker = callPackage ../misc/screensavers/light-locker { }; 8251 8252 + linenoise = callPackage ../development/libraries/linenoise { }; 8253 + 8254 lirc = callPackage ../development/libraries/lirc { }; 8255 8256 liquidfun = callPackage ../development/libraries/liquidfun { };