mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
6ca0480de6
This replaces use of `builderDefsPackage`.
27 lines
642 B
Nix
27 lines
642 B
Nix
{ stdenv, fetchurl, texinfo, allegro, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cgui-${version}";
|
|
version="2.0.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/cgui/${version}/${name}.tar.gz";
|
|
sha256 = "00kk4xaw68m44awy8zq4g5plx372swwccvzshn68a0a8f3f2wi4x";
|
|
};
|
|
|
|
buildInputs = [ texinfo allegro perl ];
|
|
|
|
configurePhase = ''
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC"
|
|
sh fix.sh unix
|
|
'';
|
|
|
|
makeFlags = [ "SYSTEM_DIR=$(out)" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A multiplatform basic GUI library";
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|