-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathnorthstar-proton.nix
53 lines (46 loc) · 1.35 KB
/
northstar-proton.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
lib,
autoPatchelfHook,
fetchzip,
gst_all_1,
libmspack,
libpcap,
libpressureaudio,
libudev-zero,
libusb1,
ocl-icd,
stdenv,
}: let
pname = "NorthstarProton";
version = "8.1-1";
src = fetchzip {
url = "https://github.com/cyrv6737/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
hash = "sha256-xJecETwsCOcU+rGTTF9hpS3whgpwsY3WsasQWMTLyns=";
};
in
stdenv.mkDerivation {
inherit pname version src;
# Got errors about this file not being writable. It's supposed to be generated
# by steampipe_fixups.py anyway, so we'll just omit it from the store.
postUnpack = "rm source/steampipe_fixups.json";
installPhase = "cp -r ./ $out";
nativeBuildInputs = [autoPatchelfHook];
# This lib isn't in nixpkgs, but it doesn't seem critical
autoPatchelfIgnoreMissingDeps = ["liblatencyflex_layer.so"];
buildInputs = [
gst_all_1.gst-plugins-base
libmspack
libpcap
libpressureaudio
libudev-zero
libusb1
ocl-icd
];
meta = {
description = "A Proton build based on TKG's proton-tkg build system to run the Northstar client on Linux and SteamDeck";
homepage = "https://github.com/cyrv6737/NorthstarProton";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [NotAShelf];
platforms = ["x86_64-linux"];
};
}