nixos-config/pkgs/jmri/default.nix

46 lines
971 B
Nix
Raw Normal View History

2023-05-15 22:59:59 +02:00
{ stdenv, fetchFromGitHub, lib, ant, jdk11, ... }:
2023-05-03 16:22:42 +02:00
stdenv.mkDerivation rec {
pname = "jmri";
2023-05-05 16:17:31 +02:00
version = "5.3.5";
2023-05-03 16:22:42 +02:00
src = fetchFromGitHub {
owner = "jmri";
repo = "jmri";
2023-05-05 16:17:31 +02:00
rev = "v${version}";
2023-05-03 16:22:42 +02:00
hash = "sha256-q3p9G16KhUjC3uUazNFDzAeKFIWu2BTds/Q1yhtSqPc=";
};
nativeBuildInputs = [
ant
2023-05-15 22:59:59 +02:00
jdk11
2023-05-03 16:22:42 +02:00
];
2023-05-15 22:59:59 +02:00
buildInputs = [
jdk11
];
2023-05-03 16:22:42 +02:00
buildPhase = ''
ant package-linux
'';
installPhase = ''
mkdir -p $out
cp -r dist/Linux/JMRI/* $out
# cp -r dist/Linux/JMRI/lib $out
# mkdir -p $out/bin
# cp dist/Linux/JMRI/PanelPro $out
# cp dist/Linux/JMRI/SoundPro $out/bin
# cp dist/Linux/JMRI/JmriFaceless $out/bin
# mkdir -p $out/lib
# cp -r dist/Linux/JMRI/lib/* $out/
'';
meta = with lib; {
homepage = "https://jmri.org";
description = "The Java Model Railroad Interface";
license = licenses.gpl2;
platforms = platforms.linux;
2023-06-15 21:01:17 +02:00
maintainers = with maintainers; [ therealr5 ];
2023-05-03 16:22:42 +02:00
};
}