nixpkgs/pkgs/applications/science/logic/logisim/default.nix

30 lines
773 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre, makeWrapper }:
2012-12-27 15:25:39 +00:00
let version = "2.7.1"; in
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "logisim";
inherit version;
2012-12-27 15:25:39 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/circuit/2.7.x/${version}/logisim-generic-${version}.jar";
sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain";
};
phases = [ "installPhase" ];
nativeBuildInputs = [makeWrapper];
2012-12-27 15:25:39 +00:00
installPhase = ''
mkdir -pv $out/bin
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;
description = "Educational tool for designing and simulating digital logic circuits";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix;
2012-12-27 15:25:39 +00:00
};
}