diff options
author | Vladimir Serov <me@cab404.ru> | 2020-07-25 03:00:26 +0300 |
---|---|---|
committer | Vladimir Serov <me@cab404.ru> | 2020-07-27 16:26:52 +0300 |
commit | 6c169418afc31755667aae70562d4f33ca57cad6 (patch) | |
tree | 8962d2d53e5406a5d5ed160e13b940e062ccf1ee /pkgs/applications/misc/sl1-to-photon | |
parent | 8a2175ba2925bd61ea4a933ff2d190a45ba54c72 (diff) | |
download | nixlib-6c169418afc31755667aae70562d4f33ca57cad6.tar nixlib-6c169418afc31755667aae70562d4f33ca57cad6.tar.gz nixlib-6c169418afc31755667aae70562d4f33ca57cad6.tar.bz2 nixlib-6c169418afc31755667aae70562d4f33ca57cad6.tar.lz nixlib-6c169418afc31755667aae70562d4f33ca57cad6.tar.xz nixlib-6c169418afc31755667aae70562d4f33ca57cad6.tar.zst nixlib-6c169418afc31755667aae70562d4f33ca57cad6.zip |
sl1-to-photon: init at 0.1.3
Diffstat (limited to 'pkgs/applications/misc/sl1-to-photon')
-rw-r--r-- | pkgs/applications/misc/sl1-to-photon/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/misc/sl1-to-photon/default.nix b/pkgs/applications/misc/sl1-to-photon/default.nix new file mode 100644 index 000000000000..a8a0bfb1e10a --- /dev/null +++ b/pkgs/applications/misc/sl1-to-photon/default.nix @@ -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"; + }; + +} |