-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
32 lines (27 loc) · 952 Bytes
/
default.nix
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
{ lib
, stdenv
, fetchurl
, zstd
, protonCachyosVersions
}:
stdenv.mkDerivation {
name = "proton-cachyos";
version = "${protonCachyosVersions.base}-${protonCachyosVersions.release}";
src = fetchurl {
url = "https://mirror.cachyos.org/repo/x86_64_v3/cachyos-v3/proton-cachyos-1%3A${protonCachyosVersions.base}.${protonCachyosVersions.release}-1-x86_64_v3.pkg.tar.zst";
inherit (protonCachyosVersions) hash;
};
nativeBuildInputs = [ zstd ];
installPhase = ''
tar -I zstd -xf $src
mkdir -p $out/share/steam/compatibilitytools.d
mv usr/share/steam/compatibilitytools.d/proton-cachyos $out/share/steam/compatibilitytools.d/
'';
meta = with lib; {
description = "CachyOS Proton build with additional patches and optimizations";
homepage = "https://github.com/CachyOS/proton-cachyos";
license = licenses.bsd3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ kimjongbing ];
};
}