mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 04:25:14 +00:00
ugs: init at 2.0.17
This commit is contained in:
parent
445347375f
commit
49a5f2ff50
53
pkgs/tools/misc/ugs/default.nix
Normal file
53
pkgs/tools/misc/ugs/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, copyDesktopItems
|
||||
, makeDesktopItem
|
||||
, makeWrapper
|
||||
, jre
|
||||
, fetchzip
|
||||
, bash
|
||||
}:
|
||||
let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "ugs";
|
||||
exec = "ugs";
|
||||
comment = "A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.";
|
||||
desktopName = "Universal-G-Code-Sender";
|
||||
categories = [ "Game" ];
|
||||
};
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ugs";
|
||||
version = "2.0.17";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/winder/Universal-G-Code-Sender/releases/download/v${version}/UniversalGcodeSender.zip";
|
||||
hash = "sha256-m4oD0ibrlVwP8ZS1pjnu/QaWmQMQlAWtZV2MGhB9X1A=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ copyDesktopItems makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
makeWrapper ${jre}/bin/java $out/bin/ugs \
|
||||
--prefix PATH : ${lib.makeBinPath [ jre ]} \
|
||||
--add-flags "-jar ${src}/UniversalGcodeSender.jar"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
desktopItems = [ desktopItem ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.";
|
||||
homepage = "https://github.com/winder/Universal-G-Code-Sender";
|
||||
maintainers = with maintainers; [ matthewcroughan ];
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -13455,6 +13455,8 @@ with pkgs;
|
||||
|
||||
ugrep = callPackage ../tools/text/ugrep { };
|
||||
|
||||
ugs = callPackage ../tools/misc/ugs { };
|
||||
|
||||
uhk-agent = callPackage ../os-specific/linux/uhk-agent { };
|
||||
|
||||
uhk-udev-rules = callPackage ../os-specific/linux/uhk-udev-rules { };
|
||||
|
Loading…
Reference in New Issue
Block a user