Unverified Commit 45281b07 authored by Petr Portnov's avatar Petr Portnov
Browse files

ripdrag: add nix-update-script

parent 3434a77f
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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";