ripdrag: add nix-update-script

This commit is contained in:
Petr Portnov 2026-03-05 20:37:40 +03:00
parent 3434a77f51
commit 45281b0718
No known key found for this signature in database
GPG key ID: 11922217F8288484

View file

@ -5,6 +5,8 @@
pkg-config,
wrapGAppsHook4,
gtk4,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -14,7 +16,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
src = fetchFromGitHub {
owner = "nik012003";
repo = "ripdrag";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-1IUS0PNzIoSrlBXQrUmw/lXUD8auVVKhu/irSoYoK6w=";
};
@ -27,10 +29,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
buildInputs = [ gtk4 ];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Application that lets you drag and drop files from and to the terminal";
homepage = "https://github.com/nik012003/ripdrag";
changelog = "https://github.com/nik012003/ripdrag/releases/tag/${finalAttrs.src.rev}";
changelog = "https://github.com/nik012003/ripdrag/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.progrm_jarvis ];
mainProgram = "ripdrag";