From c26e77f5e5d81fa83a526ec42d4967d0911f48a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Dami=C3=A1n=20Schonborn?= Date: Wed, 16 Apr 2025 22:10:15 -0300 Subject: [PATCH] xdvdfs-cli: init at 0.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Federico Damián Schonborn --- pkgs/by-name/xd/xdvdfs-cli/package.nix | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/xd/xdvdfs-cli/package.nix diff --git a/pkgs/by-name/xd/xdvdfs-cli/package.nix b/pkgs/by-name/xd/xdvdfs-cli/package.nix new file mode 100644 index 000000000000..8dcc9dbdf6c7 --- /dev/null +++ b/pkgs/by-name/xd/xdvdfs-cli/package.nix @@ -0,0 +1,40 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "xdvdfs-cli"; + version = "0.8.3"; + + src = fetchFromGitHub { + owner = "antangelo"; + repo = "xdvdfs"; + tag = "v${finalAttrs.version}"; + hash = "sha256-58f9eznPKeUVnUvslcm0CQPC+1xU3Zto+R56IXPBKT4="; + }; + + cargoHash = "sha256-vNCqfXsPjb3mph28YuYKpWTs9VHbIcXs6GVn4XgQKtQ="; + + cargoBuildFlags = [ "--package xdvdfs-cli" ]; + cargoTestFlags = [ "--package xdvdfs-cli" ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgram = "${placeholder "out"}/bin/xdvdfs"; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + mainProgram = "xdvdfs"; + description = "Original Xbox DVD Filesystem library and management tool"; + homepage = "https://github.com/antangelo/xdvdfs"; + changelog = "https://github.com/antangelo/xdvdfs/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ federicoschonborn ]; + }; +})