File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenvNoCC ,
4+ fetchurl ,
5+ electron ,
6+ dpkg ,
7+ makeWrapper ,
8+ commandLineArgs ? "" ,
9+ } :
10+
11+ stdenvNoCC . mkDerivation ( finalAttrs : {
12+ pname = "falkor" ;
13+ version = "0.0.92" ;
14+
15+ src = fetchurl {
16+ url = "https://github.com/Team-Falkor/falkor/releases/download/v${ finalAttrs . version } /falkor.deb" ;
17+ hash = "sha256-yDpYu2ehrRQuD29jcyTQla2R2IT1zfBDeWDDRnmqc8Y=" ;
18+ } ;
19+
20+ nativeBuildInputs = [
21+ makeWrapper
22+ dpkg
23+ ] ;
24+
25+ installPhase = ''
26+ runHook preInstall
27+
28+ mkdir -p $out/bin
29+ mv usr/share $out/share
30+ mkdir -p $out/share/falkor
31+ sed -i "s|Exec=.*|Exec=falkor|" $out/share/applications/*.desktop
32+ mv opt/falkor/{resources,resources.pak,locales} $out/share/falkor
33+
34+ makeWrapper ${ lib . getExe electron } $out/bin/falkor \
35+ --argv0 "falkor" \
36+ --add-flags "$out/share/falkor/resources/app.asar" \
37+ --add-flags ${ lib . escapeShellArg commandLineArgs }
38+
39+ runHook postInstall
40+ '' ;
41+
42+ meta = {
43+ description = "Electron-based gaming hub" ;
44+ homepage = "https://github.com/Team-Falkor/falkor" ;
45+ license = with lib . licenses ; [ mit ] ;
46+ maintainers = with lib . maintainers ; [ icedborn ] ;
47+ platforms = [ "x86_64-linux" ] ;
48+ hydraPlatforms = [ ] ;
49+ sourceProvenance = [ lib . sourceTypes . binaryNativeCode ] ;
50+ mainProgram = "falkor" ;
51+ } ;
52+ } )
You can’t perform that action at this time.
0 commit comments