2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libpulseaudio, SDL2, SDL2_image, SDL2_ttf, alsa-lib, libjack2 }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "picoloop";
|
|
|
|
version = "0.77e";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "yoyz";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0i8j8rgyha3ara6d4iis3wcimszf2csxdwrm5yq0wyhg74g7cvjd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpulseaudio
|
|
|
|
SDL2
|
|
|
|
SDL2.dev
|
|
|
|
SDL2_image
|
|
|
|
SDL2_ttf
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-10-19 00:13:06 +00:00
|
|
|
libjack2
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/picoloop";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-I${SDL2.dev}/include/SDL2" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace SDL_GUI.cpp \
|
|
|
|
--replace "\"font.ttf\"" "\"$out/share/font.ttf\"" \
|
|
|
|
--replace "\"font.bmp\"" "\"$out/share/font.bmp\""
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,share}
|
|
|
|
cp PatternPlayer_debian_RtAudio_sdl20 $out/bin/picoloop
|
|
|
|
cp {font.*,LICENSE} $out/share
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "A synth and a stepsequencer (a clone of the famous nanoloop)";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/yoyz/picoloop";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd3;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "picoloop";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|