depot/third_party/nixpkgs/pkgs/applications/science/logic/logisim/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
775 B
Nix

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