nixpkgs/pkgs/development/libraries/libpseudo/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

29 lines
699 B
Nix

{stdenv, fetchurl, pkgconfig, glib, ncurses}:
stdenv.mkDerivation rec {
name = "libpseudo-1.2.0";
src = fetchurl {
url = "mirror://sourceforge/libpseudo/${name}.tar.gz";
sha256 = "0d3pw0m3frycr3x5kzqcaj4r2qh43iv6b0fpd6l4yk0aa4a9560n";
};
patchPhase = ''
sed -i -e s@/usr/local@$out@ -e /ldconfig/d Makefile
'';
preInstall = ''
mkdir -p $out/include
mkdir -p $out/lib
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib ncurses ];
meta = with stdenv.lib; {
homepage = http://libpseudo.sourceforge.net/;
description = "Simple, thread-safe messaging between threads";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}