nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 825 B view raw
1{ 2 mkDerivation, 3 lib, 4 fetchFromGitHub, 5 qtbase, 6 qtserialport, 7 qmake, 8}: 9 10mkDerivation rec { 11 pname = "candle"; 12 version = "1.1"; 13 14 src = fetchFromGitHub { 15 owner = "Denvi"; 16 repo = "Candle"; 17 rev = "v${version}"; 18 sha256 = "1gpx08gdz8awbsj6lsczwgffp19z3q0r2fvm72a73qd9az29pmm0"; 19 }; 20 21 nativeBuildInputs = [ qmake ]; 22 23 sourceRoot = "${src.name}/src"; 24 25 installPhase = '' 26 runHook preInstall 27 install -Dm755 Candle $out/bin/candle 28 runHook postInstall 29 ''; 30 31 buildInputs = [ 32 qtbase 33 qtserialport 34 ]; 35 36 meta = with lib; { 37 description = "GRBL controller application with G-Code visualizer written in Qt"; 38 mainProgram = "candle"; 39 homepage = "https://github.com/Denvi/Candle"; 40 license = licenses.gpl3; 41 maintainers = with maintainers; [ matti-kariluoma ]; 42 }; 43}