Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #9582 from pjones/pkg/cura.lulzbot

curaLulzbot: init at 15.02.1-1.03-5064

+60
+58
pkgs/applications/misc/cura/lulzbot.nix
··· 1 + { stdenv, fetchurl, dpkg, bash, python27Packages }: 2 + 3 + let 4 + py = python27Packages; 5 + in 6 + stdenv.mkDerivation rec { 7 + name = "cura-lulzbot"; 8 + version = "15.02.1-1.03-5064"; 9 + 10 + src = 11 + if stdenv.system == "x86_64-linux" then 12 + fetchurl { 13 + url = "http://download.alephobjects.com/ao/aodeb/dists/jessie/main/binary-amd64/cura_${version}_amd64.deb"; 14 + sha256 = "1gsfidg3gim5pjbl82vkh0cw4ya253m4p7nirm8nr6yjrsirkzxg"; 15 + } 16 + else if stdenv.system == "i686-linux" then 17 + fetchurl { 18 + url = "http://download.alephobjects.com/ao/aodeb/dists/jessie/main/binary-i386/cura_${version}_i386.deb"; 19 + sha256 = "0xd3df6bxq4rijgvsqvps454jkc1nzhxbdzzj6j2w317ppsbhyc1"; 20 + } 21 + else throw "${name} is not supported on ${stdenv.system}"; 22 + 23 + python_deps = with py; [ pyopengl pyserial numpy wxPython30 power setuptools ]; 24 + pythonPath = python_deps; 25 + propagatedBuildInputs = python_deps; 26 + buildInputs = [ dpkg bash py.wrapPython ]; 27 + 28 + phases = [ "unpackPhase" "installPhase" ]; 29 + unpackPhase = "dpkg-deb -x ${src} ./"; 30 + 31 + installPhase = '' 32 + mkdir -p $out/bin 33 + cp -r usr/share $out/share 34 + find $out/share -type f -exec sed -i 's|/usr/share/cura|$out/share/cura|g' "{}" \; 35 + 36 + cat <<EOT > $out/bin/cura 37 + #!${bash}/bin/bash 38 + PYTHONPATH=$PYTHONPATH:$out/share/cura ${py.python}/bin/python $out/share/cura/cura.py "\$@" 39 + EOT 40 + 41 + chmod 555 $out/bin/cura 42 + ''; 43 + 44 + meta = with stdenv.lib; { 45 + description = "3D printing host software for the Lulzbot"; 46 + 47 + longDescription = '' 48 + Cura LulzBot Edition is a fork of the 3D printing/slicing 49 + software from Ultimaker, with changes to support 3D printers 50 + from Aleph Objects. 51 + ''; 52 + 53 + homepage = https://www.lulzbot.com/cura/; 54 + license = licenses.agpl3; 55 + platforms = platforms.linux; 56 + maintainers = with maintainers; [ pjones ]; 57 + }; 58 + }
+2
pkgs/top-level/all-packages.nix
··· 12830 12830 12831 12831 cura = callPackage ../applications/misc/cura { }; 12832 12832 12833 + curaLulzbot = callPackage ../applications/misc/cura/lulzbot.nix { }; 12834 + 12833 12835 peru = callPackage ../applications/version-management/peru {}; 12834 12836 12835 12837 printrun = callPackage ../applications/misc/printrun { };