mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
Signed-off-by: Federico Damián Schonborn <federicoschonborn@disroot.org>
(cherry picked from commit 135bca15a7)
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{
|
|
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; [ ];
|
|
};
|
|
})
|