1 { lib, stdenv, fetchFromGitHub, pkg-config, gtk3 }:
3 stdenv.mkDerivation (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = "v${finalAttrs.version}";
11 hash = "sha256-wqG6idlVvdN+sPwYgWu3UL0la5ssvymZibiak3KeV7M=";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ gtk3 ];
17 installFlags = [ "PREFIX=${placeholder "out"}" ];
19 ln -s $out/bin/dragon $out/bin/xdragon
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";