-
Notifications
You must be signed in to change notification settings - Fork 44
/
default.nix
77 lines (69 loc) · 1.46 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, resholve
, bash
, writeText
, coreutils
, findutils
, gawk
, gnugrep
, gnused
, gnutar
, wget
, xorg
}:
let
solution = {
scripts = [ "bin/galileo-mura-download" "bin/galileo-mura-setup" ];
interpreter = "${bash}/bin/bash";
inputs = [
coreutils
findutils
gawk
gnugrep
gnused
gnutar
wget
xorg.xprop
"${placeholder "out"}/bin"
];
execer = [
"cannot:${wget}/bin/wget"
"cannot:${placeholder "out"}/bin/galileo-mura-download"
];
fake.external = ["galileo-mura-extractor"];
prologue = "${writeText "gamescope-session-prologue" ''
export PATH=/run/wrappers/bin:$PATH
''}";
};
in
stdenv.mkDerivation rec {
pname = "galileo-mura";
version = "0.9";
src = fetchFromGitHub {
owner = "Jovian-Experiments";
repo = "galileo-mura";
rev = "v${version}";
hash = "sha256-eM4UHYCgj2vwK8cxh6KKta7gpFjX/7bwS7VJaKsBG7c=";
};
patches = [./home.patch];
nativeBuildInputs = [
meson
ninja
];
postInstall = ''
substituteInPlace $out/bin/galileo-mura-setup \
--replace-fail /usr/bin/galileo-mura-extractor galileo-mura-extractor
${resholve.phraseSolution "galileo-mura" solution}
'';
meta = with lib; {
description = "";
homepage = "https://github.com/Jovian-Experiments/galileo-mura";
license = licenses.mit;
mainProgram = "galileo-mura";
platforms = platforms.all;
};
}