From 8f729e53bc0961c784c89d53707d8c1b87377ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Fri, 21 Aug 2020 21:51:40 +0200 Subject: [PATCH] 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 --- pkgs/applications/misc/xdragon/default.nix | 28 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/applications/misc/xdragon/default.nix diff --git a/pkgs/applications/misc/xdragon/default.nix b/pkgs/applications/misc/xdragon/default.nix new file mode 100644 index 000000000000..74f1f755ec8a --- /dev/null +++ b/pkgs/applications/misc/xdragon/default.nix @@ -0,0 +1,28 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d9eb70096fbe..ed8054dbe9fd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26872,6 +26872,8 @@ in sift = callPackage ../tools/text/sift { }; + xdragon = lowPrio (callPackage ../applications/misc/xdragon { }); + xlockmore = callPackage ../misc/screensavers/xlockmore { }; xtrlock-pam = callPackage ../misc/screensavers/xtrlock-pam { };