mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
8f729e53bc
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
29 lines
720 B
Nix
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 ];
|
|
};
|
|
}
|