commit be40e48aabf5a212e9832fd55a898215d411f208
parent d499a533f65d0685fc795918e4a11f740c9f6ca5
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Thu, 10 Mar 2022 11:49:19 +0300
Add dragon
Diffstat:
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -364,6 +364,7 @@ lib.makeScope newScope (
blind = callPackage ./suckless/blind { };
chibicc = callPackage ./suckless/chibicc { };
cproc = callPackage ./suckless/cproc { };
+ dragon = callPackage ./suckless/dragon { };
farbfeld-utils = callPackage ./suckless/farbfeld-utils { };
ff-tools = callPackage ./suckless/ff-tools { };
ffshot = callPackage ./suckless/ffshot { };
diff --git a/pkgs/suckless/dragon/default.nix b/pkgs/suckless/dragon/default.nix
@@ -0,0 +1,30 @@
+{ lib, stdenv, fetchFromGitHub, pkg-config, gtk3 }:
+
+stdenv.mkDerivation rec {
+ pname = "dragon";
+ version = "1.2.0";
+
+ src = fetchFromGitHub {
+ owner = "mwh";
+ repo = pname;
+ rev = "v${version}";
+ hash = "sha256-wqG6idlVvdN+sPwYgWu3UL0la5ssvymZibiak3KeV7M=";
+ };
+
+ nativeBuildInputs = [ pkg-config ];
+
+ buildInputs = [ gtk3 ];
+
+ makeFlags = [ "CC:=$(CC)" ];
+
+ installFlags = [ "PREFIX=$(out)" ];
+
+ meta = with lib; {
+ description = "Drag and drop source/target for X";
+ inherit (src.meta) homepage;
+ license = licenses.gpl3Plus;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.linux;
+ skip.ci = stdenv.isDarwin;
+ };
+}