summary refs log tree commit diff
path: root/pkgs/applications/audio/ChowPhaser
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetophon.nl>2022-02-27 16:39:55 +0100
committerBart Brouns <bart@magnetophon.nl>2022-04-25 22:22:41 +0200
commitf33c02c4311d755fd2efb36e1ba0f87b98bb0eb9 (patch)
treeaab7e8507bfc7939d96fc8d856835a08b5409f82 /pkgs/applications/audio/ChowPhaser
parent6b2d91aa1e05476f8580a85bf5dd6b9c9e781319 (diff)
downloadnixpkgs-f33c02c4311d755fd2efb36e1ba0f87b98bb0eb9.tar
nixpkgs-f33c02c4311d755fd2efb36e1ba0f87b98bb0eb9.tar.gz
nixpkgs-f33c02c4311d755fd2efb36e1ba0f87b98bb0eb9.tar.bz2
nixpkgs-f33c02c4311d755fd2efb36e1ba0f87b98bb0eb9.tar.lz
nixpkgs-f33c02c4311d755fd2efb36e1ba0f87b98bb0eb9.tar.xz
nixpkgs-f33c02c4311d755fd2efb36e1ba0f87b98bb0eb9.tar.zst
nixpkgs-f33c02c4311d755fd2efb36e1ba0f87b98bb0eb9.zip
ChowPhaser: init at 1.1.1
Diffstat (limited to 'pkgs/applications/audio/ChowPhaser')
-rw-r--r--pkgs/applications/audio/ChowPhaser/default.nix76
1 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/applications/audio/ChowPhaser/default.nix b/pkgs/applications/audio/ChowPhaser/default.nix
new file mode 100644
index 00000000000..a828a1e1d04
--- /dev/null
+++ b/pkgs/applications/audio/ChowPhaser/default.nix
@@ -0,0 +1,76 @@
+{ alsa-lib, at-spi2-core, cmake, curl, dbus, libepoxy, fetchFromGitHub, freeglut
+, freetype, gcc-unwrapped, gtk3, lib, libGL, libXcursor, libXdmcp, libXext
+, libXinerama, libXrandr, libXtst, libdatrie, libjack2, libpsl, libselinux
+, libsepol, libsysprof-capture, libthai, libxkbcommon, pcre, pkg-config
+, python3, sqlite, stdenv }:
+
+stdenv.mkDerivation rec {
+  pname = "ChowPhaser";
+  version = "1.1.1";
+
+  src = fetchFromGitHub {
+    owner = "jatinchowdhury18";
+    repo = "ChowPhaser";
+    rev = "v${version}";
+    fetchSubmodules = true;
+    sha256 = "sha256-9wo7ZFMruG3QNvlpILSvrFh/Sx6J1qnlWc8+aQyS4tQ=";
+  };
+
+  nativeBuildInputs = [ pkg-config cmake ];
+
+  buildInputs = [
+    alsa-lib
+    at-spi2-core
+    curl
+    dbus
+    libepoxy
+    freeglut
+    freetype
+    gtk3
+    libGL
+    libXcursor
+    libXdmcp
+    libXext
+    libXinerama
+    libXrandr
+    libXtst
+    libdatrie
+    libjack2
+    libpsl
+    libselinux
+    libsepol
+    libsysprof-capture
+    libthai
+    libxkbcommon
+    pcre
+    python3
+    sqlite
+    gcc-unwrapped
+  ];
+
+  cmakeFlags = [
+    "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
+    "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
+    "-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
+  ];
+
+  installPhase = ''
+    mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin $out/share/doc/ChowPhaser/
+    cd ChowPhaserMono_artefacts/Release
+    cp libChowPhaserMono_SharedCode.a  $out/lib
+    cp -r VST3/ChowPhaserMono.vst3 $out/lib/vst3
+    cp Standalone/ChowPhaserMono  $out/bin
+    cd ../../ChowPhaserStereo_artefacts/Release
+    cp libChowPhaserStereo_SharedCode.a  $out/lib
+    cp -r VST3/ChowPhaserStereo.vst3 $out/lib/vst3
+    cp Standalone/ChowPhaserStereo  $out/bin
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/jatinchowdhury18/ChowPhaser";
+    description = "Phaser effect based loosely on the Schulte Compact Phasing 'A'";
+    license = with licenses; [ bsd3 ];
+    maintainers = with maintainers; [ magnetophon ];
+    platforms = platforms.linux;
+  };
+}