mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
slang: fix some dependants and split into outputs
These termcap and similar (nonexistent) libraries are baffling me.
This commit is contained in:
parent
0338199544
commit
b9031ea1da
@ -14,16 +14,18 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ slang popt ];
|
||||
|
||||
NIX_LDFLAGS = "-lncurses";
|
||||
|
||||
crossAttrs = {
|
||||
makeFlags = "CROSS_COMPILE=${stdenv.cross.config}-";
|
||||
};
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://fedorahosted.org/newt/;
|
||||
description = "Library for color text mode, widget based user interfaces";
|
||||
|
||||
license = stdenv.lib.licenses.lgpl2;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.viric ];
|
||||
license = licenses.lgpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.viric ];
|
||||
};
|
||||
}
|
||||
|
@ -7,6 +7,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0aqd2cjabj6nhd4r3dc4vhqif2bf3dmqnrn2gj0xm4gqyfd177jy";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "out" "doc" ];
|
||||
|
||||
# Fix some wrong hardcoded paths
|
||||
preConfigure = ''
|
||||
sed -i -e "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" configure
|
||||
@ -15,13 +17,19 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e "s|-ltermcap|-lncurses|" ./configure
|
||||
'';
|
||||
configureFlags = "--with-png=${libpng} --with-z=${zlib} --with-pcre=${pcre} --with-readline=${readline}";
|
||||
buildInputs = [ncurses pcre libpng zlib readline];
|
||||
buildInputs = [ pcre libpng zlib readline ];
|
||||
propagatedBuildInputs = [ ncurses ];
|
||||
|
||||
meta = {
|
||||
postInstall = ''
|
||||
find "$out"/lib/ -name '*.so' -exec chmod +x "{}" \;
|
||||
sed '/^Libs:/s/$/ -lncurses/' -i "$dev"/lib/pkgconfig/slang.pc
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A multi-platform programmer's library designed to allow a developer to create robust software";
|
||||
homepage = http://www.jedsoft.org/slang/;
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.fuuzetsu ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user