mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
ripdrag: add nix-update-script
This commit is contained in:
parent
3434a77f51
commit
45281b0718
1 changed files with 9 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue