diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2020-11-01 23:39:49 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2020-11-01 23:02:24 -0800 |
commit | 2c931312ce6c7baf91ec98e164bef0241fc20aa6 (patch) | |
tree | 6bf1c7d460aab2085256fd415e3f24734516683d /pkgs/tools/X11/xwinmosaic | |
parent | c6afa8820b528cec7e889e462cbcab84c0313b41 (diff) |
treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
Diffstat (limited to 'pkgs/tools/X11/xwinmosaic')
-rw-r--r-- | pkgs/tools/X11/xwinmosaic/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/tools/X11/xwinmosaic/default.nix b/pkgs/tools/X11/xwinmosaic/default.nix index 7b30e5c581558..7bd0c3e6dcd48 100644 --- a/pkgs/tools/X11/xwinmosaic/default.nix +++ b/pkgs/tools/X11/xwinmosaic/default.nix @@ -1,12 +1,13 @@ -{ stdenv, fetchgit, gtk2, cmake, pkgconfig, libXdamage }: +{ stdenv, fetchFromGitHub, gtk2, cmake, pkgconfig, libXdamage }: stdenv.mkDerivation rec { version = "0.4.2"; pname = "xwinmosaic"; - src = fetchgit { - url = "https://github.com/soulthreads/xwinmosaic/"; - rev = "refs/tags/v0.4.2"; + src = fetchFromGitHub { + owner = "soulthreads"; + repo = pname; + rev = "refs/tags/v${version}"; sha256 = "16qhrpgn84fz0q3nfvaz5sisc82zk6y7c0sbvbr69zfx5fwbs1rr"; }; |