about summary refs log tree commit diff
path: root/pkgs/applications/misc/cura
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-12-13 15:41:17 +0100
committerFelix Buehler <account@buehler.rocks>2021-12-14 16:24:44 +0100
commit66e037cf8ed399bc51e60e5381b1ef218c8859d0 (patch)
tree5ad57a73143eb3508825d2a44e0e909306731156 /pkgs/applications/misc/cura
parent9812836f38e06b445e542f89fa4eba6fa96910b2 (diff)
cura_stable: fix build by using correct version number
Diffstat (limited to 'pkgs/applications/misc/cura')
-rw-r--r--pkgs/applications/misc/cura/stable.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/pkgs/applications/misc/cura/stable.nix b/pkgs/applications/misc/cura/stable.nix
index 5383cbe9a23ab..a2ec91193ea41 100644
--- a/pkgs/applications/misc/cura/stable.nix
+++ b/pkgs/applications/misc/cura/stable.nix
@@ -1,15 +1,14 @@
-{ lib, stdenv, python27Packages, curaengine, makeDesktopItem, fetchurl }:
-let
-  py = python27Packages;
-  version = "15.04";
-in
+{ lib, stdenv, python27Packages, curaengine, makeDesktopItem, fetchFromGitHub }:
+
 stdenv.mkDerivation rec {
   pname = "cura";
-  inherit version;
+  version = "15.06.03";
 
-  src = fetchurl {
-    url = "https://github.com/daid/Cura/archive/${version}.tar.gz";
-    sha256 = "0xbjvzhp8wzq9lnpmcg1fjf7j5h39bj5463sd5c8jzdjl96izizl";
+  src = fetchFromGitHub {
+    owner = "daid";
+    repo = "Cura";
+    rev = version;
+    sha256 = "sha256-o1cAi4Wi19WOijlRB9iYwNEpSNnmywUj5Bth8rRhqFA=";
   };
 
   desktopItem = makeDesktopItem {
@@ -22,13 +21,13 @@ stdenv.mkDerivation rec {
     categories = "GNOME;GTK;Utility;";
   };
 
-  python_deps = with py; [ pyopengl pyserial numpy wxPython30 power setuptools ];
+  python_deps = with python27Packages; [ pyopengl pyserial numpy wxPython30 power setuptools ];
 
   pythonPath = python_deps;
 
   propagatedBuildInputs = python_deps;
 
-  buildInputs = [ curaengine py.wrapPython ];
+  buildInputs = [ curaengine python27Packages.wrapPython ];
 
   configurePhase = "";
   buildPhase = "";