summaryrefslogtreecommitdiff
path: root/home-manager/fmod
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-03-29 22:35:21 +0100
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-03-29 22:36:50 +0100
commit2418424adabca0a1616cca4920221cd67149b65a (patch)
treeb5b237376601cdfbd386ab96be5015fc486147fc /home-manager/fmod
parented0794d5d65c1e15038c308f0a2751a2bcc5cc84 (diff)
Initial commit (Pre-flakes)
Diffstat (limited to '')
-rw-r--r--home-manager/fmod/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/home-manager/fmod/default.nix b/home-manager/fmod/default.nix
new file mode 100644
index 0000000..1c9e942
--- /dev/null
+++ b/home-manager/fmod/default.nix
@@ -0,0 +1,29 @@
+{stdenv, fetchurl }:
+
+stdenv.mkDerivation {
+ name = "fmod-42204";
+ src = if (stdenv.system == "i686-linux") then
+ fetchurl {
+ url = "http://www.fmod.org/index.php/release/version/fmodapi42204linux.tar.gz";
+ sha256 = "64eedc5b37c597eb925de446106d75cab0b5a79697d5ec048d34702812c08563";
+ } else if (stdenv.system == "x86_64-linux") then
+ fetchurl {
+ url = "http://www.fmod.org/index.php/release/version/fmodapi42204linux64.tar.gz";
+ sha256 = "3f2eec8265838a1005febe07c4971660e85010e4622911890642dc438746edf3";
+ } else throw "unsupported platform ${stdenv.system} (only i686-linux and x86_64 linux supported yet)";
+
+ preInstall = ''
+ sed -e /ldconfig/d -i Makefile
+ sed -e s@/usr/local@$out@ -i Makefile
+ sed -e s@/include/fmodex@/include@ -i Makefile
+ mkdir -p $out/lib
+ mkdir -p $out/include
+ '';
+
+ meta = {
+ homepage = "http://www.fmod.org/";
+ description = "Programming library and toolkit for the creation and playback of interactive audio";
+ license = "unfree";
+ };
+}
+