Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / ch / chow-phaser / package.nix
blob87f22c9da1c57b2aa068393c0840195bc634adfd
1 { alsa-lib, at-spi2-core, cmake, curl, dbus, libepoxy, fetchFromGitHub, libglut
2 , freetype, gcc-unwrapped, gtk3, lib, libGL, libXcursor, libXdmcp, libXext
3 , libXinerama, libXrandr, libXtst, libdatrie, libjack2, libpsl, libselinux
4 , libsepol, libsysprof-capture, libthai, libxkbcommon, pcre, pkg-config
5 , python3, sqlite, stdenv }:
7 stdenv.mkDerivation (finalAttrs: {
8   pname = "chow-phaser";
9   version = "1.1.1";
11   src = fetchFromGitHub {
12     owner = "jatinchowdhury18";
13     repo = "ChowPhaser";
14     rev = "v${finalAttrs.version}";
15     fetchSubmodules = true;
16     hash = "sha256-9wo7ZFMruG3QNvlpILSvrFh/Sx6J1qnlWc8+aQyS4tQ=";
17   };
19   nativeBuildInputs = [ pkg-config cmake ];
21   buildInputs = [
22     alsa-lib
23     at-spi2-core
24     curl
25     dbus
26     libepoxy
27     libglut
28     freetype
29     gtk3
30     libGL
31     libXcursor
32     libXdmcp
33     libXext
34     libXinerama
35     libXrandr
36     libXtst
37     libdatrie
38     libjack2
39     libpsl
40     libselinux
41     libsepol
42     libsysprof-capture
43     libthai
44     libxkbcommon
45     pcre
46     python3
47     sqlite
48     gcc-unwrapped
49   ];
51   cmakeFlags = [
52     "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
53     "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
54     "-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
55   ];
57   installPhase = ''
58     mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin $out/share/doc/ChowPhaser/
59     cd ChowPhaserMono_artefacts/Release
60     cp libChowPhaserMono_SharedCode.a  $out/lib
61     cp -r VST3/ChowPhaserMono.vst3 $out/lib/vst3
62     cp Standalone/ChowPhaserMono  $out/bin
63     cd ../../ChowPhaserStereo_artefacts/Release
64     cp libChowPhaserStereo_SharedCode.a  $out/lib
65     cp -r VST3/ChowPhaserStereo.vst3 $out/lib/vst3
66     cp Standalone/ChowPhaserStereo  $out/bin
67   '';
69   meta = with lib; {
70     homepage = "https://github.com/jatinchowdhury18/ChowPhaser";
71     description = "Phaser effect based loosely on the Schulte Compact Phasing 'A'";
72     license = with licenses; [ bsd3 ];
73     mainProgram = "ChowPhaserStereo";
74     maintainers = with maintainers; [ magnetophon ];
75     platforms = platforms.linux;
76   };