mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Added Logisim-2.7.1.
This commit is contained in:
parent
b21cee6f63
commit
fcdf685793
32
pkgs/applications/science/logic/logisim/default.nix
Normal file
32
pkgs/applications/science/logic/logisim/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv, fetchurl, jre }:
|
||||
|
||||
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" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/bin
|
||||
cp -v $src $out/logisim.jar
|
||||
|
||||
cat > $out/bin/logisim << EOF
|
||||
#!${stdenv.shell}
|
||||
${jre}/bin/java -jar $out/logisim.jar
|
||||
EOF
|
||||
|
||||
chmod +x $out/bin/logisim
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://ozark.hendrix.edu/~burch/logisim";
|
||||
description = "Logisim is an educational tool for designing and simulating digital logic circuits.";
|
||||
license = "GPLv2+";
|
||||
};
|
||||
}
|
@ -8743,6 +8743,8 @@ let
|
||||
|
||||
leo2 = callPackage ../applications/science/logic/leo2 {};
|
||||
|
||||
logisim = callPackage ../applications/science/logic/logisim {};
|
||||
|
||||
matita = callPackage ../applications/science/logic/matita {
|
||||
ocaml = ocaml_3_11_2;
|
||||
inherit (ocamlPackages_3_11_2) findlib lablgtk ocaml_expat gmetadom ocaml_http
|
||||
|
Loading…
Reference in New Issue
Block a user