nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "repak";
10 version = "0.2.2";
11
12 src = fetchFromGitHub {
13 owner = "trumank";
14 repo = "repak";
15 tag = "v${version}";
16 hash = "sha256-nl05EsR52YFSR9Id3zFynhrBIvaqVwUOdjPlSp19Gcc=";
17 };
18
19 cargoHash = "sha256-i0pBd0ZiMIEFGZgvBgVNCfqPHE6E3Rt5pAHHVj1epLs=";
20
21 passthru.updateScript = nix-update-script { };
22
23 meta = {
24 description = "Unreal Engine .pak file library and CLI in rust";
25 homepage = "https://github.com/trumank/repak";
26 changelog = "https://github.com/trumank/repak/releases/tag/v${version}";
27 license = with lib.licenses; [
28 mit
29 asl20
30 ];
31 maintainers = with lib.maintainers; [ florensie ];
32 mainProgram = "repak";
33 };
34}