blob: 14a6892784fcbfaef6549179bd34c60d0b086ec1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
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";
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 = [ ];
};
})
|