diff options
author | Felix Buehler <account@buehler.rocks> | 2021-09-19 18:57:57 +0200 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-09-19 18:57:57 +0200 |
commit | 11d9481a9eda474b1cbc7aa4a86f9ccb2d6d6285 (patch) | |
tree | 0f4fe4518f35d64aaecea5b47ca9d713a00ef669 /pkgs/tools/misc/xtitle | |
parent | dfc987cd7c983d1c88d9e89a53e236e2a47628cc (diff) |
xtitle: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/tools/misc/xtitle')
-rw-r--r-- | pkgs/tools/misc/xtitle/default.nix | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/pkgs/tools/misc/xtitle/default.nix b/pkgs/tools/misc/xtitle/default.nix index 2820958443ed7..975b24103d59e 100644 --- a/pkgs/tools/misc/xtitle/default.nix +++ b/pkgs/tools/misc/xtitle/default.nix @@ -1,24 +1,25 @@ -{ lib, stdenv, fetchurl, libxcb, xcbutil, xcbutilwm, git }: +{ lib, stdenv, fetchFromGitHub, libxcb, xcbutil, xcbutilwm, git }: stdenv.mkDerivation rec { - pname = "xtitle"; - version = "0.4.4"; + pname = "xtitle"; + version = "0.4.4"; - src = fetchurl { - url = "https://github.com/baskerville/xtitle/archive/${version}.tar.gz"; - sha256 = "0w490a6ki90si1ri48jzhma473a598l1b12j8dp4ckici41z9yy2"; - }; + src = fetchFromGitHub { + owner = "baskerville"; + repo = "xtitle"; + rev = version; + hash = "sha256-SVfM2vCCacgchXj0c0sPk3VR6DUI4R0ofFnxJSY4oDg="; + }; + buildInputs = [ libxcb git xcbutil xcbutilwm ]; - buildInputs = [ libxcb git xcbutil xcbutilwm ]; + prePatch = ''sed -i "s@/usr/local@$out@" Makefile''; - prePatch = ''sed -i "s@/usr/local@$out@" Makefile''; - - meta = { - description = "Outputs X window titles"; - homepage = "https://github.com/baskerville/xtitle"; - maintainers = [ lib.maintainers.meisternu ]; - license = "Custom"; - platforms = lib.platforms.linux; - }; + meta = { + description = "Outputs X window titles"; + homepage = "https://github.com/baskerville/xtitle"; + maintainers = [ lib.maintainers.meisternu ]; + license = "Custom"; + platforms = lib.platforms.linux; + }; } |