Created
May 21, 2019 20:38
-
-
Save adisbladis/5dd77d930e56c4bc97156541eab93ce8 to your computer and use it in GitHub Desktop.
microwindows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchFromGitHub, automake, zlib, libpng, libjpeg | |
, freetype, libX11, libXext, yacc, flex }: | |
stdenv.mkDerivation rec { | |
version = "unstable-2019-05-20"; | |
pname = "microwindows"; | |
src = fetchFromGitHub { | |
owner = "ghaerr"; | |
repo = "microwindows"; | |
rev = "ad3164ddd42fb28761a04ec69534e4486a5894f8"; | |
sha256 = "0qddkzwax96i0g73ir378s37b3xhihpz2146a3yph4l2p6lcdd8i"; | |
}; | |
sourceRoot = "source/src"; | |
patchPhase = '' | |
cp Configs/config.linux-X11 config | |
# canceled failing demo | |
substituteInPlace demos/nuklear/Makefile --replace "all:" "#all:" | |
''; | |
nativeBuildInputs = [ automake flex yacc ]; | |
buildInputs = [ libpng libjpeg freetype libX11 libXext zlib ]; | |
makeFlags = [ | |
"LEX=flex" | |
"HAVE_JPEG_SUPPORT=Y" | |
"INSTALL_PREFIX=$(out)" | |
"INSTALL_OWNER1= INSTALL_OWNER2=" | |
]; | |
# copy missing binaries | |
postInstall = '' | |
cp bin/* $out/bin | |
''; | |
postFixup = '' | |
find "$out/bin" -executable -exec \ | |
patchelf \ | |
--replace-needed /build/source/src/lib/libnano-X.so "$out/lib/libnano-X.so" \ | |
--replace-needed /build/source/src/lib/libmwin.so "$out/lib/libmwin.so" \ | |
{} \; | |
''; | |
meta = with stdenv.lib; { | |
description = "a small graphical windowing system"; | |
homepage = "http://microwindows.org"; | |
license = licenses.mpl11; | |
maintainers = [ maintainers.genesis ]; | |
platforms = platforms.linux; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment