8 , desktopToDarwinBundle
12 stdenv.mkDerivation (finalAttrs: {
17 url = "mirror://sourceforge/project/circuit/${lib.versions.majorMinor finalAttrs.version}.x/${finalAttrs.version}/logisim-generic-${finalAttrs.version}.jar";
18 hash = "sha256-Nip4wSrRjCA/7YaIcsSgHNnBIUE3nZLokrviw35ie8I=";
26 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
33 desktopName = "Logisim";
36 comment = finalAttrs.meta.description;
37 categories = [ "Education" ];
45 makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
48 unzip $src "resources/logisim/img/*"
49 for size in 16 20 24 48 64 128
51 install -Dm444 "./resources/logisim/img/logisim-icon-$size.png" "$out/share/icons/hicolor/''${size}x''${size}/apps/logisim.png"
58 homepage = "http://www.cburch.com/logisim/";
59 description = "Educational tool for designing and simulating digital logic circuits";
60 mainProgram = "logisim";
61 maintainers = with lib.maintainers; [ emilytrau ];
62 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
63 license = lib.licenses.gpl2Only;
64 platforms = lib.platforms.unix;