2021-01-15 05:21:58 -08:00
|
|
|
{ lib, 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;
|
2021-01-15 05:21:58 -08:00
|
|
|
|
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";
|
|
|
|
};
|
2021-01-15 05:21:58 -08:00
|
|
|
|
2012-12-27 07:25:39 -08:00
|
|
|
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
|
|
|
'';
|
2021-01-15 05:21:58 -08:00
|
|
|
|
2012-12-27 07:25:39 -08:00
|
|
|
meta = {
|
2020-03-31 18:11:51 -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";
|
2021-01-15 05:21:58 -08:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2012-12-27 07:25:39 -08:00
|
|
|
};
|
|
|
|
}
|