3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/xdragon/default.nix
Janne Heß 8f729e53bc
xdragon: Init at 1.1.1
The package is renamed from `dragon` to prevent name conflicts with the
existing package as recommended in [1].

1: https://github.com/mwh/dragon/issues/17
2020-08-25 22:54:28 +02:00

29 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 ];
};
}