added dirty jmri package

This commit is contained in:
Rouven Seifert 2023-05-03 16:22:42 +02:00
parent 5dfa4b73f9
commit d3d384fdb8
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
5 changed files with 49 additions and 6 deletions

View file

@ -46,11 +46,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1683062158, "lastModified": 1683108321,
"narHash": "sha256-gLan/SNan9YfhuL8v83Uoo9j755l7GOPTqXd9FtMdko=", "narHash": "sha256-XIRvYgJl0vIr00HhFN0cQK6zwcuww74DSq0wJSdijPA=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "2e28e88dfdca3d836c5dbedb916e0f629fc6a540", "rev": "5a3c1449194aa70d5eacbd902fa99cc1b2910a30",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -78,7 +78,8 @@
, ... , ...
}@attrs: { }@attrs: {
packages.x86_64-linux.default = self.nixosConfigurations.iso.config.system.build.isoImage; packages.x86_64-linux.default = self.nixosConfigurations.iso.config.system.build.isoImage;
hydraJobs.x86_64-linux.default = self.packages.x86_64-linux.default; packages.x86_64-linux.jmri = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/jmri { };
hydraJobs.x86_64-linux = self.packages.x86_64-linux;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations = { nixosConfigurations = {
thinkpad = nixpkgs.lib.nixosSystem { thinkpad = nixpkgs.lib.nixosSystem {

View file

@ -8,7 +8,7 @@ in
port = 4000; port = 4000;
hydraURL = domain; hydraURL = domain;
notificationSender = "hydra@localhost"; notificationSender = "hydra@localhost";
buildMachinesFiles = []; buildMachinesFiles = [ ];
useSubstitutes = true; useSubstitutes = true;
}; };

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub}: { lib, stdenv, fetchFromGitHub }:
let let
themeName = "Dracula"; themeName = "Dracula";

42
pkgs/jmri/default.nix Normal file
View 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 ];
};
}