2017-02-22 13:13:01 +00:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
2012-12-27 15:25:39 +00:00
|
|
|
|
|
|
|
let version = "2.7.1"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "logisim-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/circuit/2.7.x/${version}/logisim-generic-${version}.jar";
|
|
|
|
sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
2017-02-22 13:13:01 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [makeWrapper];
|
|
|
|
|
2012-12-27 15:25:39 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
2017-02-22 13:13:01 +00:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
|
2012-12-27 15:25:39 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://ozark.hendrix.edu/~burch/logisim";
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Educational tool for designing and simulating digital logic circuits";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-12-27 15:25:39 +00:00
|
|
|
};
|
|
|
|
}
|