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