depot/third_party/nixpkgs/pkgs/applications/misc/xdragon/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

28 lines
720 B
Nix

{ stdenv, fetchFromGitHub, pkg-config, gtk3 }:
stdenv.mkDerivation rec {
pname = "xdragon";
version = "1.1.1";
src = fetchFromGitHub {
owner = "mwh";
repo = "dragon";
rev = "v${version}";
sha256 = "0fgzz39007fdjwq72scp0qygp2v3zc5f1xkm0sxaa8zxm25g1bra";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 ];
installFlags = [ "PREFIX=${placeholder "out"}/bin" ];
postInstall = ''
ln -s $out/bin/dragon $out/bin/xdragon
'';
meta = with stdenv.lib; {
description = "Simple drag-and-drop source/sink for X (called dragon in upstream)";
homepage = "https://github.com/mwh/dragon";
license = licenses.gpl3;
maintainers = with maintainers; [ das_j ];
};
}