depot/third_party/nixpkgs/pkgs/development/libraries/libpseudo/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

29 lines
730 B
Nix

{lib, stdenv, fetchurl, pkg-config, glib, ncurses}:
stdenv.mkDerivation rec {
pname = "libpseudo";
version = "1.2.0";
src = fetchurl {
url = "mirror://sourceforge/libpseudo/libpseudo-${version}.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 = [ pkg-config ];
buildInputs = [ glib ncurses ];
meta = with lib; {
homepage = "http://libpseudo.sourceforge.net/";
description = "Simple, thread-safe messaging between threads";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}