Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
microwindows
{ 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
You can’t perform that action at this time.