acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / st / stone-phaser / package.nix
blobf581ae1b1cb64756ee7b7784567e813f3b0fdef7
1 { lib, stdenv, fetchFromGitHub, xorg, cairo, libGL, lv2, libjack2, mesa, pkg-config }:
3 stdenv.mkDerivation rec {
4   pname = "stone-phaser";
5   version = "0.1.2";
7   src = fetchFromGitHub {
8     owner = "jpcima";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "180b32z8h9zi8p0q55r1dzxfckamnngm52zjypjjvvy7qdj3mfcd";
12     fetchSubmodules = true;
13   };
15   nativeBuildInputs = [ pkg-config ];
16   buildInputs = [
17     xorg.libX11 cairo libGL lv2 libjack2 mesa
18   ];
20   postPatch = ''
21     patch -d dpf -p 1 -i "$src/resources/patch/DPF-bypass.patch"
22     patchShebangs ./dpf/utils/generate-ttl.sh
24     # Fix gcc-13 build failure due to missing includes
25     sed -e '1i #include <cstdint>' -i plugins/stone-phaser/ui/Color.h
26   '';
28   installFlags = [ "PREFIX=$(out)" ];
30   meta = with lib; {
31     broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
32     homepage = "https://github.com/jpcima/stone-phaser";
33     description = "Classic analog phaser effect, made with DPF and Faust";
34     maintainers = [ maintainers.magnetophon ];
35     platforms = platforms.linux;
36     license = licenses.boost;
37   };