Skip to content

Commit dbae8dc

Browse files
chore: adding fmodstudio
1 parent 2680e20 commit dbae8dc

File tree

5 files changed

+130
-1
lines changed

5 files changed

+130
-1
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.deb filter=lfs diff=lfs merge=lfs -text

Diff for: crazy/overlays.nix

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
awesome = awesome-luajit-git;
2121
};
2222

23+
# packages included at `../repo`
24+
monorepoOverlays = _: prev: {
25+
fmodstudio = prev.callPackage ../repo/fmodstudio.nix {};
26+
};
27+
2328
miscOverlays = _: prev: let
2429
inherit (prev) system;
2530
inherit (inputs) cutefetch;
@@ -51,5 +56,6 @@
5156
awmOverlay
5257
fontsOverlays
5358
miscOverlays
59+
monorepoOverlays
5460
];
5561
}

Diff for: misc/fmodstudio20222linux64-installer.deb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:2fa065e4e70d2272fba3d4b693e9705fb1d0fdbf53d0ae6ca4acf001a13f62c8
3+
size 133227448

Diff for: repo/fmodstudio.nix

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
lib,
3+
stdenv,
4+
dpkg,
5+
makeWrapper,
6+
buildFHSEnv,
7+
fetchurl,
8+
...
9+
}: let
10+
system = "x86_64-linux";
11+
version = "2.02.22";
12+
13+
# this comes with lfs in this repository.
14+
src = ../misc/fmodstudio20222linux64-installer.deb;
15+
in stdenv.mkDerivation rec {
16+
pname = "fmodstudio20222linux64-installer";
17+
18+
inherit
19+
version
20+
system
21+
src
22+
;
23+
24+
nativeBuildInputs = [
25+
makeWrapper
26+
dpkg
27+
];
28+
29+
fhsEnv = buildFHSEnv {
30+
name = "${pname}-fhs-env";
31+
runScript = "";
32+
33+
targetPkgs = pkgs: with pkgs; [
34+
xorg.libXrandr
35+
xdg-utils
36+
gsettings-desktop-schemas
37+
hicolor-icon-theme
38+
fontconfig
39+
freetype
40+
lsb-release
41+
];
42+
43+
multiPkgs = pkgs: with pkgs; [
44+
cups
45+
gtk3
46+
expat
47+
libxkbcommon
48+
alsa-lib
49+
nss
50+
libdrm
51+
mesa
52+
nspr
53+
atk
54+
dbus
55+
at-spi2-core
56+
pango
57+
libva
58+
openssl
59+
cairo
60+
libnotify
61+
libuuid
62+
udev
63+
libappindicator
64+
wayland
65+
cpio
66+
icu
67+
libpulseaudio
68+
libglvnd
69+
glib
70+
gdk-pixbuf
71+
libxml2
72+
zlib
73+
clang
74+
git
75+
gnome2.GConf
76+
libcap
77+
] ++ (with pkgs.xorg; [
78+
libXcomposite
79+
libXext
80+
libXdamage
81+
libXfixes
82+
libxcb
83+
libxshmfence
84+
libXScrnSaver
85+
libXtst
86+
libX11
87+
libXcursor
88+
libXi
89+
libXrender
90+
]);
91+
};
92+
93+
unpackCmd = "dpkg -x $curSrc src";
94+
95+
dontConfigure = true;
96+
dontBuild = true;
97+
98+
installPhase = ''
99+
runHook preInstall
100+
101+
mkdir -p $out
102+
mv opt/ usr/share/ $out
103+
104+
makeWrapper ${fhsEnv}/bin/${pname}-fhs-env $out/opt/fmodstudio/fmodstudio.wrapped \
105+
--add-flags $out/opt/fmodstudio/fmodstudio \
106+
--argv0 fmodstudio.wrapped
107+
108+
mkdir -p $out/bin
109+
ln -s $out/opt/fmodstudio/fmodstudio.wrapped $out/bin/fmodstudio
110+
111+
substituteInPlace $out/share/applications/fmodstudio.desktop \
112+
--replace /opt/fmodstudio/fmodstudio $out/opt/fmodstudio/fmodstudio.wrapped
113+
114+
runHook postInstall
115+
'';
116+
}
117+

Diff for: users/Gabriel/programs/pkgs.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{pkgs, ...}: {
22
home.packages = with pkgs; [
3+
unityhub
4+
fmodstudio
35
github-cli
6+
git-lfs
47
slack
58
rofi
69
pavucontrol
@@ -12,7 +15,6 @@
1215
htop
1316
firefox
1417
maim
15-
unityhub
1618
vlc
1719
clang
1820
clang-tools

0 commit comments

Comments
 (0)