ref(nix): export lib

This commit is contained in:
Léana 江 2024-03-08 13:12:09 +01:00 committed by Léana 江
parent 73afd2e280
commit 5b8e87c7a4
8 changed files with 30 additions and 6 deletions

View 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
}