sl1-to-photon: init at 0.1.3
This commit is contained in:
parent
8a2175ba29
commit
6c169418af
41
pkgs/applications/misc/sl1-to-photon/default.nix
Normal file
41
pkgs/applications/misc/sl1-to-photon/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, pillow
|
||||
, pyside2
|
||||
, numpy
|
||||
, pyphotonfile
|
||||
, shiboken2
|
||||
, which
|
||||
}:
|
||||
let
|
||||
version = "0.1.3";
|
||||
in
|
||||
buildPythonApplication rec {
|
||||
pname = "sl1-to-photon";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fookatchu";
|
||||
repo = "SL1toPhoton";
|
||||
rev = "v${version}";
|
||||
sha256 = "1hmb74rcky3nax4lxn7pw6lcd5a66fdbwrm11c84zb31xb51bakw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyphotonfile pillow numpy pyside2 shiboken2 ];
|
||||
|
||||
format = "other";
|
||||
|
||||
installPhase = ''
|
||||
install -D -m 0755 SL1_to_Photon.py $out/bin/${pname}
|
||||
sed -i '1i#!/usr/bin/env python' $out/bin/${pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
maintainers = [ maintainers.cab404 ];
|
||||
license = licenses.gpl3Plus;
|
||||
description = "Tool for converting Slic3r PE's SL1 files to Photon files for the Anycubic Photon 3D-Printer";
|
||||
homepage = "https://github.com/fookatchu/SL1toPhoton";
|
||||
};
|
||||
|
||||
}
|
@ -3060,6 +3060,8 @@ in
|
||||
|
||||
doom-bcc = callPackage ../games/zdoom/bcc-git.nix { };
|
||||
|
||||
sl1-to-photon = python3Packages.callPackage ../applications/misc/sl1-to-photon { };
|
||||
|
||||
slade = callPackage ../applications/misc/slade {
|
||||
wxGTK = wxGTK30;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user