File tree 2 files changed +54
-0
lines changed
packages/batocera/core/batocera-scripts
2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 77
77
batocera = pkgs . callPackage ./packages/batocera { inherit batocera-src ; } ;
78
78
batocera-resolution = pkgs . callPackage ./packages/batocera/core/batocera-resolution { inherit batocera-src ; } ;
79
79
batocera-settings = pkgs . callPackage ./packages/batocera/core/batocera-settings { inherit batocera-src ; } ;
80
+ batocera-scripts = pkgs . callPackage ./packages/batocera/core/batocera-scripts { inherit batocera-src ; } ;
80
81
81
82
mangohud = pkgs . callPackage ./packages/batocera/utils/mangohud { inherit batocera-src ; } ;
82
83
emulationstation-batocera = pkgs . callPackage ./overlays/emulationstation-batocera { } ;
287
288
pkgs . batocera
288
289
pkgs . batocera-resolution
289
290
pkgs . batocera-settings
291
+ pkgs . batocera-scripts
290
292
291
293
pkgs . mangohud
292
294
pkgs . emulationstation-batocera
295
+ pkgs . vulkan-tools
293
296
] ;
294
297
295
298
bato . systems . psx . enable = true ;
Original file line number Diff line number Diff line change
1
+ { lib
2
+ , stdenv
3
+ , batocera-src
4
+
5
+ , enableMouse ? true
6
+ , mouse-type ? "xorg"
7
+ } :
8
+
9
+ stdenv . mkDerivation ( finalAttrs : {
10
+ pname = "batocera-scripts" ;
11
+
12
+ version = "3" ;
13
+
14
+ sourceRoot = "source/package/batocera/core/batocera-scripts" ;
15
+ src = batocera-src ;
16
+
17
+ patchPhase = ''
18
+ runHook prePatch
19
+
20
+ substituteInPlace scripts/batocera-vulkan \
21
+ --replace-fail "/usr/bin/vulkaninfo" "/run/current-system/sw/bin/vulkaninfo"
22
+
23
+ runHook postPatch
24
+ '' ;
25
+
26
+ dontBuild = true ;
27
+
28
+ installPhase = ''
29
+ runHook preInstall
30
+
31
+ mkdir -p $out/bin
32
+ install -m 0755 scripts/batocera-vulkan $out/bin/
33
+ '' +
34
+ ( lib . optionalString enableMouse ''
35
+ install -m 0755 scripts/batocera-mouse.${ mouse-type } $out/bin/batocera-mouse
36
+ '' ) + ''
37
+
38
+ runHook postInstall
39
+ '' ;
40
+ } )
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
You can’t perform that action at this time.
0 commit comments