base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / X11 / xdragon / default.nix
blob9f12a78e29361cf048c6f80cb8c90cd19d6d0500
1 { lib, stdenv, fetchFromGitHub, pkg-config, gtk3 }:
3 stdenv.mkDerivation (finalAttrs: {
4   pname = "xdragon";
5   version = "1.2.0";
7   src = fetchFromGitHub {
8     owner = "mwh";
9     repo = "dragon";
10     rev = "v${finalAttrs.version}";
11     hash = "sha256-wqG6idlVvdN+sPwYgWu3UL0la5ssvymZibiak3KeV7M=";
12   };
14   nativeBuildInputs = [ pkg-config ];
15   buildInputs = [ gtk3 ];
17   installFlags = [ "PREFIX=${placeholder "out"}" ];
18   postInstall = ''
19     ln -s $out/bin/dragon $out/bin/xdragon
20   '';
22   meta = with lib; {
23     description = "Simple drag-and-drop source/sink for X (called dragon in upstream)";
24     homepage = "https://github.com/mwh/dragon";
25     license = licenses.gpl3;
26     maintainers = with maintainers; [ das_j ];
27     mainProgram = "xdragon";
28   };