Bruno BELANYI
0aa2f59530
I haven't tested it on darwin, and it just so happens that some dependency is broken on that system (breaking `nix flake check`)... Will revisit this later in case I ever happen to use a darwin system.
30 lines
618 B
Nix
30 lines
618 B
Nix
{ lib, fetchFromGitHub, qt5, stdenv }:
|
|
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.linux;
|
|
};
|
|
}
|