about summary refs log tree commit diff
path: root/pkgs/applications/misc/curaengine/stable.nix
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-12-13 15:36:58 +0100
committerFelix Buehler <account@buehler.rocks>2021-12-23 19:11:17 +0100
commit10117b2aaa920fc326f0abc3ff8e9a13fe38ff86 (patch)
treec92ea99b4e6c5d2f22b1f57ad4b1920bc99bbf81 /pkgs/applications/misc/curaengine/stable.nix
parent4d09c0001cea1295bd3898bc66850c5639e4ff6b (diff)
curaengine_stable: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/applications/misc/curaengine/stable.nix')
-rw-r--r--pkgs/applications/misc/curaengine/stable.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/applications/misc/curaengine/stable.nix b/pkgs/applications/misc/curaengine/stable.nix
index 3c74aaaded4af..6bddfabfb5bb9 100644
--- a/pkgs/applications/misc/curaengine/stable.nix
+++ b/pkgs/applications/misc/curaengine/stable.nix
@@ -1,14 +1,14 @@
-{ lib, stdenv, fetchurl }:
-let
-  version = "15.04.6";
-in
-stdenv.mkDerivation {
+{ lib, stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
   pname = "curaengine";
-  inherit version;
+  version = "15.04.6";
 
-  src = fetchurl {
-    url = "https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz";
-    sha256 = "1cd4dikzvqyj5g80rqwymvh4nwm76vsf78clb37kj6q0fig3qbjg";
+  src = fetchFromGitHub {
+    owner = "Ultimaker";
+    repo = "CuraEngine";
+    rev = version;
+    sha256 = "sha256-8V21TRSqCN+hkTlz51d5A5oK5JOwEtx+ROt8cfJBL/0=";
   };
 
   postPatch = ''