summary refs log tree commit diff
path: root/pkgs/tools/X11/devour/default.nix
blob: 016ffa6215dbdaa6b98bcc460de443e2283e288d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchFromGitHub, libX11 }:

stdenv.mkDerivation rec {
  pname = "devour";
  version = "12";

  src = fetchFromGitHub {
    owner = "salman-abedin";
    repo = "devour";
    rev = version;
    sha256 = "1qq5l6d0fn8azg7sj7a4m2jsmhlpswl5793clcxs1p34vy4wb2lp";
  };

  installPhase = ''
    install -Dm555 -t $out/bin devour
  '';

  buildInputs = [ libX11 ];

  meta = with lib; {
    description = "Devour hides your current window when launching an external program";
    longDescription = "Devour hides your current window before launching an external program and unhides it after quitting";
    homepage = "https://github.com/salman-abedin/devour";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ mazurel ];
    platforms = platforms.unix;
  };
}