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