1 { lib, mkDerivation, fetchFromGitHub
2 , python3, ruby, qtbase, qtmultimedia, qttools, qtxmlpatterns
10 src = fetchFromGitHub {
14 hash = "sha256-4GjCV/Z9al7Hrj7Ik/EvmLy5jPCsU/3Ti9HwOjzPKYc=";
18 substituteInPlace src/klayout.pri --replace "-Wno-reserved-user-defined-literal" ""
40 ./build.sh -qt5 -prefix $out/lib -option -j$NIX_BUILD_CORES
46 mv $out/lib/klayout $out/bin/
48 install -Dm444 etc/klayout.desktop -t $out/share/applications
49 install -Dm444 etc/logo.png $out/share/icons/hicolor/256x256/apps/klayout.png
52 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-parentheses" ];
54 dontInstall = true; # Installation already happens as part of "build.sh"
56 # Fix: "gsiDeclQMessageLogger.cc:126:42: error: format not a string literal
57 # and no format arguments [-Werror=format-security]"
58 hardeningDisable = [ "format" ];
61 description = "High performance layout viewer and editor with support for GDS and OASIS";
62 mainProgram = "klayout";
63 license = with licenses; [ gpl2Plus ];
64 homepage = "https://www.klayout.de/";
65 changelog = "https://www.klayout.de/development.html#${version}";
66 platforms = platforms.linux;
67 maintainers = with maintainers; [ knedlsepp ];