@@ -1,29 +1,28 @@
11{ lib, stdenv, fetchurl, jre, makeWrapper }:
22
3−let version = "2.7.1"; in
4−
5−stdenv.mkDerivation {
3+stdenv.mkDerivation rec {
64 pname = "logisim";
7− inherit version;
5+ version = "2.7.1";
86
97 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";
119 sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain";
1210 };
1311
1412 dontUnpack = true;
1513
16− nativeBuildInputs = [makeWrapper];
14+ nativeBuildInputs = [ makeWrapper ];
1715
1816 installPhase = ''
19− mkdir -pv $out/bin
17+ mkdir -p $out/bin
2018 makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
2119 '';
2220
23− meta = {
21+ meta = with lib; {
2422 homepage = "http://ozark.hendrix.edu/~burch/logisim";
2523 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;
2827 };
2928}