filius: init at 2.9.4 (#429463)

authored by jopejoe1 and committed by GitHub cd2fe0d0 0fc5817f

+92
+92
pkgs/by-name/fi/filius/package.nix
···
··· 1 + { 2 + lib, 3 + maven, 4 + fetchFromGitLab, 5 + makeWrapper, 6 + jre, 7 + wrapGAppsHook3, 8 + nix-update-script, 9 + }: 10 + 11 + maven.buildMavenPackage rec { 12 + pname = "filius"; 13 + version = "2.9.4"; 14 + 15 + src = fetchFromGitLab { 16 + owner = "filius1"; 17 + repo = pname; 18 + # they seem to have stopped using the "v" prefix since 2.9.3 19 + tag = version; 20 + hash = "sha256-nQyDPLDQe5kFH3PhCmLqAt8kVnitPwX5K3xLnyntF5k="; 21 + }; 22 + 23 + mvnHash = "sha256-6Qq/7vgA9bWQK+k66qORNwvLKMR1U5yb95DJMWaDq/k="; 24 + mvnParameters = "-Plinux"; 25 + 26 + # tests want to create an X11 window which isn't often feasible 27 + doCheck = false; 28 + 29 + postPatch = '' 30 + substituteInPlace src/deb/filius.desktop \ 31 + --replace 'Exec=/usr/share/filius/filius.sh' 'Exec=filius' 32 + ''; 33 + 34 + nativeBuildInputs = [ 35 + makeWrapper 36 + wrapGAppsHook3 37 + ]; 38 + 39 + installPhase = '' 40 + runHook preInstall 41 + 42 + mkdir -p $out/bin $out/share/${pname} 43 + cp -r target/* $out/share/${pname} 44 + 45 + # GTK_THEME is not just set to adwaita, but to the *light* adwaita because otherwise the application is sort of unusable. the terminal still has unreadable text though (light on light). 46 + # Without _JAVA_AWT_WM_NONREPARENTING, if you launch filius, it's just a white window, i.e. broken. 47 + makeWrapper ${lib.getExe' jre "java"} $out/bin/${pname} \ 48 + --set GTK_THEME 'Adwaita' \ 49 + --set _JAVA_AWT_WM_NONREPARENTING '1' \ 50 + --set _JAVA_OPTIONS '-Dawt.useSystemAAFontSettings=lcd' \ 51 + --add-flags "-jar $out/share/${pname}/${pname}.jar" \ 52 + 53 + runHook postInstall 54 + ''; 55 + 56 + postInstall = '' 57 + install -Dm444 src/deb/application-filius-project.xml $out/share/mime/packages/application-filius-project.xml 58 + 59 + install -Dm444 src/deb/filius32.png $out/share/icons/hicolor/80x56/mimetypes/filius.png 60 + install -Dm444 src/deb/filius32.png $out/share/icons/hicolor/80x56/apps/filius.png 61 + 62 + mkdir -p $out/share/man/man1/ 63 + cp src/deb/filius.1 $out/share/man/man1/ 64 + 65 + mkdir -p $out/share/applications 66 + cp src/deb/filius.desktop $out/share/applications/ 67 + ''; 68 + 69 + passthru.updateScript = nix-update-script { }; 70 + 71 + meta = { 72 + homepage = "https://www.lernsoftware-filius.de/"; 73 + # note, the gitlab repo page is *not* the homepage and there is not meta attribute for their git forge page 74 + downloadPage = "https://www.lernsoftware-filius.de/Herunterladen"; 75 + description = "A computer network simulator for secondary schools"; 76 + longDescription = '' 77 + With the software tool Filius, you can design computer networks yourself, 78 + simulate the exchange of messages in them and thus explore their structure 79 + and functionality experimentally. The target group are pupils at secondary 80 + schools (general education). Filius enables learning activities that 81 + are designed to support discovery-based learning in particular. 82 + ''; 83 + license = with lib.licenses; [ 84 + gpl2Only 85 + gpl3Only 86 + ]; 87 + maintainers = with lib.maintainers; [ annaaurora ]; 88 + platforms = lib.platforms.all; 89 + mainProgram = "filius"; 90 + sourceProvenance = [ lib.sourceTypes.fromSource ]; 91 + }; 92 + }