mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
hyprquickframe: init at 1.1.0 (#499296)
This commit is contained in:
71
pkgs/by-name/hy/hyprquickframe/package.nix
Normal file
71
pkgs/by-name/hy/hyprquickframe/package.nix
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
qt6,
|
||||
quickshell,
|
||||
grim,
|
||||
imagemagick,
|
||||
wl-clipboard,
|
||||
libnotify,
|
||||
satty,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "hyprquickframe";
|
||||
version = "1.1.0";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ronin-CK";
|
||||
repo = "HyprQuickFrame";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-hyu7ihDIVXfswghbY8I4kBkNqft5kZ7ARD9frethQx8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
qt6.wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qt6.qt5compat
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/hyprquickframe
|
||||
cp -r . $out/share/hyprquickframe/
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${quickshell}/bin/quickshell $out/bin/hyprquickframe \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
quickshell
|
||||
grim
|
||||
imagemagick
|
||||
wl-clipboard
|
||||
libnotify
|
||||
satty
|
||||
]
|
||||
} \
|
||||
--add-flags "-c $out/share/hyprquickframe -n"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Quickshell-based screenshot utility for Hyprland";
|
||||
homepage = "https://github.com/Ronin-CK/HyprQuickFrame";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.sophronesis ];
|
||||
mainProgram = "hyprquickframe";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user