9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkg-config, xlibsWrapper, xorgproto, libXi
|
|
, freeglut, libGLU, libGL, libjpeg, zlib, libXft, libpng
|
|
, libtiff, freetype, Cocoa, AGL, GLUT
|
|
}:
|
|
|
|
let
|
|
version = "1.4.x-r13121";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "fltk";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://www.fltk.org/pub/fltk/snapshots/fltk-${version}.tar.gz";
|
|
sha256 = "1v8wxvxcbk99i82x2v5fpqg5vj8n7g8a38g30ry7nzcjn5sf3r63";
|
|
};
|
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./nsosv.patch ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libGLU libGL libjpeg zlib libpng libXft ]
|
|
++ stdenv.lib.optional stdenv.isDarwin [ AGL Cocoa GLUT ];
|
|
|
|
propagatedBuildInputs = [ xorgproto ]
|
|
++ (if stdenv.isDarwin
|
|
then [ freetype libtiff ]
|
|
else [ xlibsWrapper libXi freeglut ]);
|
|
|
|
configureFlags = [
|
|
"--enable-gl"
|
|
"--enable-largefile"
|
|
"--enable-shared"
|
|
"--enable-threads"
|
|
"--enable-xft"
|
|
];
|
|
|
|
preConfigure = "make clean";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A C++ cross-platform lightweight GUI library";
|
|
homepage = "https://www.fltk.org";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.gpl2;
|
|
};
|
|
|
|
}
|