depot/pkgs/applications/misc/candle/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

33 lines
808 B
Nix

{ mkDerivation, lib, fetchFromGitHub, qtbase, qtserialport, qmake }:
mkDerivation rec {
pname = "candle";
version = "1.1";
src = fetchFromGitHub {
owner = "Denvi";
repo = "Candle";
rev = "v${version}";
sha256 = "1gpx08gdz8awbsj6lsczwgffp19z3q0r2fvm72a73qd9az29pmm0";
};
nativeBuildInputs = [ qmake ];
sourceRoot = "${src.name}/src";
installPhase = ''
runHook preInstall
install -Dm755 Candle $out/bin/candle
runHook postInstall
'';
buildInputs = [ qtbase qtserialport ];
meta = with lib; {
description = "GRBL controller application with G-Code visualizer written in Qt";
mainProgram = "candle";
homepage = "https://github.com/Denvi/Candle";
license = licenses.gpl3;
maintainers = with maintainers; [ matti-kariluoma ];
};
}