about summary refs log tree commit diff
path: root/pkgs/servers/beanstalkd
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-09-19 15:25:15 +0200
committerFelix Buehler <account@buehler.rocks>2021-09-22 17:40:09 +0200
commit3d9480f720d861d718487aa2c5fc9b6b8370a47a (patch)
tree4645587dff602203d80e525ace82535abfd13e26 /pkgs/servers/beanstalkd
parentaa298de8006902167fcc01385681f67a82a41e0f (diff)
beanstalkd: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/servers/beanstalkd')
-rw-r--r--pkgs/servers/beanstalkd/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/servers/beanstalkd/default.nix b/pkgs/servers/beanstalkd/default.nix
index 9bfe3182d6539..71966a32cf0f1 100644
--- a/pkgs/servers/beanstalkd/default.nix
+++ b/pkgs/servers/beanstalkd/default.nix
@@ -1,12 +1,14 @@
-{ lib, stdenv, fetchurl, installShellFiles, nixosTests }:
+{ lib, stdenv, fetchFromGitHub, installShellFiles, nixosTests }:
 
 stdenv.mkDerivation rec {
   version = "1.12";
   pname = "beanstalkd";
 
-  src = fetchurl {
-    url = "https://github.com/kr/beanstalkd/archive/v${version}.tar.gz";
-    sha256 = "0gw8aygysnjzzfjgfzivy5vajla9adg2zcr4h8rrdf0xyykpwfpl";
+  src = fetchFromGitHub {
+    owner = "kr";
+    repo = "beanstalkd";
+    rev = "v${version}";
+    hash = "sha256-HChpVZ02l08CObrb4+ZEjBiXeQMMYi6zhSWUTDxuEao=";
   };
 
   hardeningDisable = [ "fortify" ];