From 7d787a2770166fb01cb4f669b40c67650b147831 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 8 Oct 2021 14:59:03 +0200 Subject: [PATCH] pkgs: add dragger --- pkgs/default.nix | 2 ++ pkgs/dragger/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/dragger/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 4e35cff..a420a7e 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -6,6 +6,8 @@ pkgs.lib.makeScope pkgs.newScope (pkgs: { diff-flake = pkgs.callPackage ./diff-flake { }; + dragger = pkgs.callPackage ./dragger { }; + drone-scp = pkgs.callPackage ./drone-scp { }; ff2mpv-go = pkgs.callPackage ./ff2mpv-go { }; diff --git a/pkgs/dragger/default.nix b/pkgs/dragger/default.nix new file mode 100644 index 0000000..a4ccd61 --- /dev/null +++ b/pkgs/dragger/default.nix @@ -0,0 +1,29 @@ +{ lib, fetchFromGitHub, qt5 }: +qt5.mkDerivation rec { + pname = "dragger"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "ambroisie"; + repo = "dragger"; + rev = "v${version}"; + sha256 = "sha256-WAC720DxfkQxy1BeeGzE6IerFb4ejoMRAPEJv5HGDHM="; + }; + + configurePhase = '' + qmake + ''; + + installPhase = '' + mkdir -p $out/bin + cp dragger $out/bin + ''; + + meta = with lib; { + description = "A CLI drag-and-drop tool"; + homepage = "https://gitea.belanyi.fr/ambroisie/dragger"; + license = licenses.mit; + maintainers = [ ambroisie ]; + platforms = platforms.all; + }; +}