From 24cd85e2c6c440d045e23c7c223406faf7019f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 12 Oct 2021 20:01:25 +0200 Subject: [PATCH] xtitle: minor cleanup --- pkgs/tools/misc/xtitle/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/xtitle/default.nix b/pkgs/tools/misc/xtitle/default.nix index 975b24103d59..e3454538bf84 100644 --- a/pkgs/tools/misc/xtitle/default.nix +++ b/pkgs/tools/misc/xtitle/default.nix @@ -11,15 +11,17 @@ stdenv.mkDerivation rec { hash = "sha256-SVfM2vCCacgchXj0c0sPk3VR6DUI4R0ofFnxJSY4oDg="; }; + postPatch = '' + sed -i "s|/usr/local|$out|" Makefile + ''; + buildInputs = [ libxcb git xcbutil xcbutilwm ]; - prePatch = ''sed -i "s@/usr/local@$out@" Makefile''; - - meta = { + meta = with lib; { description = "Outputs X window titles"; homepage = "https://github.com/baskerville/xtitle"; - maintainers = [ lib.maintainers.meisternu ]; + maintainers = with maintainers; [ meisternu ]; license = "Custom"; - platforms = lib.platforms.linux; + platforms = platforms.linux; }; }