nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 wayland,
6 libxkbcommon,
7 libGL,
8 autoPatchelfHook,
9 nix-update-script,
10}:
11
12rustPlatform.buildRustPackage (finalAttrs: {
13 pname = "openspeedrun";
14 version = "0.3.3";
15
16 src = fetchFromGitHub {
17 owner = "SrWither";
18 repo = "OpenSpeedRun";
19 tag = "v${finalAttrs.version}";
20 hash = "sha256-EZPApXUVhsaOYa6CnpR8IWeEoHEl89KJGGoBOYFqBV0=";
21 };
22
23 cargoHash = "sha256-WzsLEfDZpjpUrbyPOr5QUkTMrlAJoC9Rej5BMOKF7OM=";
24
25 nativeBuildInputs = [
26 autoPatchelfHook
27 ];
28
29 runtimeDependencies = [
30 wayland
31 libxkbcommon
32 libGL
33 ];
34
35 autoPatchelfIgnoreMissingDeps = [
36 "libgcc_s.so.1"
37 ];
38
39 passthru.updateScript = nix-update-script { };
40
41 meta = {
42 changelog = "https://github.com/SrWither/OpenSpeedRun/releases/tag/v${finalAttrs.version}";
43 description = "Modern and minimalistic open-source speedrun timer";
44 homepage = "https://github.com/SrWither/OpenSpeedRun";
45 license = lib.licenses.bsd3;
46 maintainers = [ lib.maintainers.pyrox0 ];
47 mainProgram = "openspeedrun";
48 };
49})