mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 08:28:31 +02:00
added dirty jmri package
This commit is contained in:
parent
5dfa4b73f9
commit
d3d384fdb8
5 changed files with 49 additions and 6 deletions
42
pkgs/jmri/default.nix
Normal file
42
pkgs/jmri/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, fetchFromGitHub, lib, ant, jdk, ... }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jmri";
|
||||
version = "v5.3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jmri";
|
||||
repo = "jmri";
|
||||
rev = version;
|
||||
hash = "sha256-q3p9G16KhUjC3uUazNFDzAeKFIWu2BTds/Q1yhtSqPc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
ant
|
||||
jdk
|
||||
];
|
||||
|
||||
|
||||
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;
|
||||
maintainers = with maintainers; [ therealr5 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue