11 version = "1.0-34-g93b2db9";
13 src = fetchFromGitHub {
16 rev = "1.0-34-g93b2db9";
17 hash = "sha256-GsrYg16gpjHkkmpCU3yGzqNS/buZl+JoWALLvwzmT4A=";
22 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
27 $CC -c -o linenoise.o linenoise.c
28 $CC -shared -o liblinenoise.so linenoise.o
29 $AR rcs liblinenoise.a linenoise.o
37 install -d $out/lib/pkgconfig $out/include
38 install -m644 linenoise.h $out/include/
39 install -m644 liblinenoise.a $out/lib/
40 install -m644 liblinenoise.so $out/lib/
41 substituteAll ${./linenoise.pc.in} $out/lib/pkgconfig/linenoise.pc
47 homepage = "https://github.com/antirez/linenoise";
48 description = "Minimal, zero-config, BSD licensed, readline replacement";
49 maintainers = with lib.maintainers; [
53 platforms = lib.platforms.unix;
54 license = lib.licenses.bsd2;