about summary refs log tree commit diff
path: root/pkgs/tools/wayland/wlsunset
diff options
context:
space:
mode:
authorLogan Glasson <logan@glasson.nz>2021-03-14 00:33:02 +1300
committerLogan Glasson <logan@glasson.nz>2021-03-14 00:34:30 +1300
commita0e35869a21edfd2a6595cbd6aa9f3fd09654c82 (patch)
tree7ba72808ac0cb72da0d58d7494c319ec1bb39a99 /pkgs/tools/wayland/wlsunset
parent9fc486d67fa71929aa9440aa9a6b87114103c72d (diff)
aerc, asuka, scdoc, wev, wlsunset, wshowkeys: use fetchFromSourceHut
Diffstat (limited to 'pkgs/tools/wayland/wlsunset')
-rw-r--r--pkgs/tools/wayland/wlsunset/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/tools/wayland/wlsunset/default.nix b/pkgs/tools/wayland/wlsunset/default.nix
index 692ddd37cf392..931f394d6890c 100644
--- a/pkgs/tools/wayland/wlsunset/default.nix
+++ b/pkgs/tools/wayland/wlsunset/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, meson, pkg-config, ninja, wayland
+{ lib, stdenv, fetchFromSourcehut, meson, pkg-config, ninja, wayland
 , wayland-protocols
 }:
 
@@ -6,9 +6,11 @@ stdenv.mkDerivation rec {
   pname = "wlsunset";
   version = "0.1.0";
 
-  src = fetchurl {
-    url = "https://git.sr.ht/~kennylevinsen/wlsunset/archive/${version}.tar.gz";
-    sha256 = "0g7mk14hlbwbhq6nqr84452sbgcja3hdxsqf0vws4njhfjgqiv3q";
+  src = fetchFromSourcehut {
+    owner = "~kennylevinsen";
+    repo = pname;
+    rev = version;
+    sha256 = "12snizvf49y40cirhr2brgyldhsykv4k2gnln2sdrajqzhrc98v6";
   };
 
   nativeBuildInputs = [ meson pkg-config ninja wayland ];