lol

xcwd: cleanup

TomaSajt 2eecd0cf ce89133d

+12 -12
+12 -12
pkgs/tools/X11/xcwd/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, libX11 }: 2 2 3 - stdenv.mkDerivation rec { 4 - version = "1.0"; 3 + stdenv.mkDerivation (finalAttrs: { 5 4 pname = "xcwd"; 5 + version = "1.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "schischi"; 9 9 repo = "xcwd"; 10 - rev = "v${version}"; 11 - sha256 = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo="; 10 + rev = "v${finalAttrs.version}"; 11 + hash = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo="; 12 12 }; 13 13 14 14 buildInputs = [ libX11 ]; 15 15 16 16 makeFlags = [ "prefix=$(out)" ]; 17 17 18 - installPhase = '' 19 - install -D xcwd "$out/bin/xcwd" 18 + preInstall = '' 19 + mkdir -p $out/bin 20 20 ''; 21 21 22 - meta = with lib; { 22 + meta = { 23 23 description = '' 24 - A simple tool which print the current working directory of the currently focused window 24 + A simple tool which prints the current working directory of the currently focused window 25 25 ''; 26 26 homepage = "https://github.com/schischi/xcwd"; 27 - maintainers = [ maintainers.grburst ]; 28 - license = licenses.bsd3; 29 - platforms = platforms.linux; 27 + license = lib.licenses.bsd3; 30 28 mainProgram = "xcwd"; 29 + maintainers = [ lib.maintainers.grburst ]; 30 + platforms = lib.platforms.linux; 31 31 }; 32 - } 32 + })