2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let version = "2.7.1"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "logisim";
|
|
|
|
inherit version;
|
2021-01-17 00:15:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/circuit/2.7.x/${version}/logisim-generic-${version}.jar";
|
|
|
|
sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain";
|
|
|
|
};
|
2021-01-17 00:15:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [makeWrapper];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
|
|
|
|
'';
|
2021-01-17 00:15:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://ozark.hendrix.edu/~burch/logisim";
|
|
|
|
description = "Educational tool for designing and simulating digital logic circuits";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|