nix/pkgs: enigma: init
This commit is contained in:
parent
efdf61b4e6
commit
89e37ba633
2 changed files with 31 additions and 0 deletions
|
@ -23,5 +23,6 @@
|
|||
django-tailwind = pkgs.python3Packages.callPackage ./django-tailwind.nix {};
|
||||
windows = import ./windows args;
|
||||
hp-rom = import ./hp-rom.nix args;
|
||||
enigma = import ./enigma.nix args;
|
||||
} // (import ./heptapod-runner.nix args)
|
||||
// (import ./lightspeed args)
|
||||
|
|
30
nix/pkgs/enigma.nix
Normal file
30
nix/pkgs/enigma.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs) stdenv fetchurl jdk wrapGAppsHook makeWrapper gtk3;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "enigma";
|
||||
version = "0.23.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://maven.fabricmc.net/cuchaz/enigma-swing/${version}/enigma-swing-${version}-all.jar";
|
||||
sha256 = "sha256:003y7zjdig5ngjkpzpminp55k3mzv7g2csjp5sfhn26gvm7bnr23";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
dontUnpack = true;
|
||||
buildPhase = "true";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share
|
||||
cp $src $out/share/enigma-swing-all.jar
|
||||
makeWrapper ${jdk}/bin/java $out/bin/enigma --add-flags "-jar $out/share/enigma-swing-all.jar"
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue