summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-09-19 15:25:37 +0200
committerFelix Buehler <account@buehler.rocks>2021-09-22 17:40:09 +0200
commitd69406b88cfb6a21a69e376da0b5fb44f97ba4eb (patch)
tree135aa3a1b24ce46afbd12da7b3cb6d8cf9123cda
parent3d9480f720d861d718487aa2c5fc9b6b8370a47a (diff)
downloadnixpkgs-d69406b88cfb6a21a69e376da0b5fb44f97ba4eb.tar
nixpkgs-d69406b88cfb6a21a69e376da0b5fb44f97ba4eb.tar.gz
nixpkgs-d69406b88cfb6a21a69e376da0b5fb44f97ba4eb.tar.bz2
nixpkgs-d69406b88cfb6a21a69e376da0b5fb44f97ba4eb.tar.lz
nixpkgs-d69406b88cfb6a21a69e376da0b5fb44f97ba4eb.tar.xz
nixpkgs-d69406b88cfb6a21a69e376da0b5fb44f97ba4eb.tar.zst
nixpkgs-d69406b88cfb6a21a69e376da0b5fb44f97ba4eb.zip
couchpotato: switch to fetchFromGitHub
-rw-r--r--pkgs/servers/couchpotato/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/servers/couchpotato/default.nix b/pkgs/servers/couchpotato/default.nix
index 40941123ebc..d276c02487d 100644
--- a/pkgs/servers/couchpotato/default.nix
+++ b/pkgs/servers/couchpotato/default.nix
@@ -1,4 +1,4 @@
-{ fetchurl, python2Packages, lib }:
+{ fetchFromGitHub, python2Packages, lib }:
 
 with python2Packages;
 
@@ -7,9 +7,11 @@ buildPythonApplication rec {
   version = "3.0.1";
   disabled = isPy3k;
 
-  src = fetchurl {
-    url = "https://github.com/CouchPotato/CouchPotatoServer/archive/build/${version}.tar.gz";
-    sha256 = "1xwjis3ijh1rff32mpdsphmsclf0lkpd3phpgxkccrigq1m9r3zh";
+  src = fetchFromGitHub {
+    owner = "CouchPotato";
+    repo = "CouchPotatoServer";
+    rev = "build/${version}";
+    hash = "sha256-0k8MqLnqYjhHPE9/jncTFIj1T4F2aXU4mXdeEimDB7M=";
   };
 
   format = "other";