2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, gtk3 }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "xdragon";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.2.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mwh";
|
|
|
|
repo = "dragon";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-wqG6idlVvdN+sPwYgWu3UL0la5ssvymZibiak3KeV7M=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/dragon $out/bin/xdragon
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
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 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "xdragon";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|