mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(nix): export lib
This commit is contained in:
parent
73afd2e280
commit
5b8e87c7a4
8 changed files with 30 additions and 6 deletions
30
nix/custom/logisim-evolution.nix
Normal file
30
nix/custom/logisim-evolution.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{pkgs}: let
|
||||
inherit (pkgs) stdenv fetchurl jre8;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "logisim-evolution";
|
||||
version = "2023";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.irisa.fr/cosi/HOMEPAGE/Derrien/logisim/logisim-evolution.jar";
|
||||
sha256 = "sha256-24uXyTXhxxA1uwc787I+OJn+ZmqMgNIL9RE3zoRrWww=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = with pkgs; [makeWrapper unzip zip];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${jre8}/bin/java $out/bin/logisim-evolution \
|
||||
--add-flags "-jar $src" \
|
||||
--set _JAVA_AWT_WM_NONREPARENTING 1
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
# NOTE: related issue
|
||||
# https://wiki.archlinux.org/title/java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue