Merge pull request #130812 from SuperSandro2000/SuperSandro2000-patch-4

logisim: cleanup

authored by Sandro and committed by GitHub 8472d44b 2db23b5c

+9 -10
+9 -10
pkgs/applications/science/logic/logisim/default.nix
··· 1 { lib, stdenv, fetchurl, jre, makeWrapper }: 2 3 - let version = "2.7.1"; in 4 - 5 - stdenv.mkDerivation { 6 pname = "logisim"; 7 - inherit version; 8 9 src = fetchurl { 10 - url = "mirror://sourceforge/project/circuit/2.7.x/${version}/logisim-generic-${version}.jar"; 11 sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain"; 12 }; 13 14 dontUnpack = true; 15 16 - nativeBuildInputs = [makeWrapper]; 17 18 installPhase = '' 19 - mkdir -pv $out/bin 20 makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src" 21 ''; 22 23 - meta = { 24 homepage = "http://ozark.hendrix.edu/~burch/logisim"; 25 description = "Educational tool for designing and simulating digital logic circuits"; 26 - license = lib.licenses.gpl2Plus; 27 - platforms = lib.platforms.unix; 28 }; 29 }
··· 1 { lib, stdenv, fetchurl, jre, makeWrapper }: 2 3 + stdenv.mkDerivation rec { 4 pname = "logisim"; 5 + version = "2.7.1"; 6 7 src = fetchurl { 8 + url = "mirror://sourceforge/project/circuit/${lib.versions.majorMinor version}.x/${version}/logisim-generic-${version}.jar"; 9 sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain"; 10 }; 11 12 dontUnpack = true; 13 14 + nativeBuildInputs = [ makeWrapper ]; 15 16 installPhase = '' 17 + mkdir -p $out/bin 18 makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src" 19 ''; 20 21 + meta = with lib; { 22 homepage = "http://ozark.hendrix.edu/~burch/logisim"; 23 description = "Educational tool for designing and simulating digital logic circuits"; 24 + maintainers = with maintainers; [ ]; 25 + license = licenses.gpl2Plus; 26 + platforms = platforms.unix; 27 }; 28 }