mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
logisim-evolution: init at 3.5.0
This commit is contained in:
parent
2129356a64
commit
92cced04c6
2 changed files with 48 additions and 0 deletions
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchurl, jre, makeWrapper, copyDesktopItems, makeDesktopItem, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "logisim-evolution";
|
||||
version = "3.5.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/logisim-evolution/logisim-evolution/releases/download/v${version}/logisim-evolution-${version}-all.jar";
|
||||
sha256 = "1r6im4gmjbnckx8jig6bxi5lxv06lwdnpxkyfalsfmw4nybd5arw";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper copyDesktopItems unzip ];
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = pname;
|
||||
desktopName = "Logisim-evolution";
|
||||
exec = "logisim-evolution";
|
||||
icon = "logisim-evolution";
|
||||
comment = meta.description;
|
||||
categories = "Education;";
|
||||
})
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${jre}/bin/java $out/bin/logisim-evolution --add-flags "-jar $src"
|
||||
|
||||
unzip $src resources/logisim/img/logisim-icon.svg
|
||||
install -D resources/logisim/img/logisim-icon.svg $out/share/pixmaps/logisim-evolution.svg
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/logisim-evolution/logisim-evolution";
|
||||
description = "Digital logic designer and simulator";
|
||||
maintainers = with maintainers; [ angustrau ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -30428,6 +30428,8 @@ in
|
|||
|
||||
logisim = callPackage ../applications/science/logic/logisim {};
|
||||
|
||||
logisim-evolution = callPackage ../applications/science/logic/logisim-evolution {};
|
||||
|
||||
ltl2ba = callPackage ../applications/science/logic/ltl2ba {};
|
||||
|
||||
metis-prover = callPackage ../applications/science/logic/metis-prover { };
|
||||
|
|
Loading…
Reference in a new issue