diff --git a/pkgs/tools/X11/xpointerbarrier/default.nix b/pkgs/tools/X11/xpointerbarrier/default.nix index 8cb36cb9141d..88bf06f3d0bd 100644 --- a/pkgs/tools/X11/xpointerbarrier/default.nix +++ b/pkgs/tools/X11/xpointerbarrier/default.nix @@ -1,22 +1,38 @@ -{ lib, stdenv, xorg, fetchgit }: -stdenv.mkDerivation rec { +{ lib, + stdenv, + fetchurl, + pkg-config, + libX11, + libXfixes, + libXrandr, +}: + +stdenv.mkDerivation (finalAttrs: { pname = "xpointerbarrier"; - version = "18.06"; - src = fetchgit { - url = "https://www.uninformativ.de/git/xpointerbarrier.git"; - rev = "v${version}"; - sha256 = "1k7i641x18qhjm0llsaqn2h2g9k31kgv6p8sildllmbvgxyrgvq7"; + version = "20.07"; + + src = fetchurl { + url = "https://www.uninformativ.de/git/xpointerbarrier/archives/xpointerbarrier-v${finalAttrs.version}.tar.gz"; + hash = "sha256-V1sNAQjsPVSjJ2nhCSdZqZQA78pjUE0z3IU4+I85CpI="; }; - buildInputs = [ xorg.libX11 xorg.libXfixes xorg.libXrandr ]; + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libX11 + libXfixes + libXrandr + ]; makeFlags = [ "prefix=$(out)" ]; - meta = { + meta = with lib; { homepage = "https://uninformativ.de/git/xpointerbarrier"; description = "Create X11 pointer barriers around your working area"; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.xzfc ]; - platforms = lib.platforms.linux; + license = licenses.mit; + maintainers = with maintainers; [ AndersonTorres xzfc ]; + platforms = platforms.linux; }; -} +})