1 { lib, mkDerivation, fetchFromGitHub
2 , python3, ruby, qtbase, qtmultimedia, qttools, qtxmlpatterns
10 src = fetchFromGitHub {
14 hash = "sha256-w3ag+TPUrjPbPIy6N4HPsfraOyoHqBbvjwB1M6+qh60=";
18 substituteInPlace src/klayout.pri --replace "-Wno-reserved-user-defined-literal" ""
39 ./build.sh -qt5 -prefix $out/lib -option -j$NIX_BUILD_CORES
45 mv $out/lib/klayout $out/bin/
48 NIX_CFLAGS_COMPILE = [ "-Wno-parentheses" ];
50 dontInstall = true; # Installation already happens as part of "build.sh"
52 # Fix: "gsiDeclQMessageLogger.cc:126:42: error: format not a string literal
53 # and no format arguments [-Werror=format-security]"
54 hardeningDisable = [ "format" ];
57 description = "High performance layout viewer and editor with support for GDS and OASIS";
58 license = with licenses; [ gpl2Plus ];
59 homepage = "https://www.klayout.de/";
60 changelog = "https://www.klayout.de/development.html#${version}";
61 platforms = platforms.linux;
62 maintainers = with maintainers; [ knedlsepp ];