Files
nixpkgs/pkgs/by-name/pi/picoloop/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
libpulseaudio,
SDL2,
SDL2_image,
SDL2_ttf,
alsa-lib,
libjack2,
}:
stdenv.mkDerivation rec {
pname = "picoloop";
version = "0.77e";
src = fetchFromGitHub {
repo = "picoloop";
owner = "yoyz";
rev = "picoloop-${version}";
sha256 = "0i8j8rgyha3ara6d4iis3wcimszf2csxdwrm5yq0wyhg74g7cvjd";
};
buildInputs = [
libpulseaudio
SDL2
(lib.getDev SDL2)
SDL2_image
SDL2_ttf
alsa-lib
libjack2
];
sourceRoot = "${src.name}/picoloop";
makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ];
env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getInclude SDL2}/include/SDL2" ];
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
'';
meta = with lib; {
description = "Synth and a stepsequencer (a clone of the famous nanoloop)";
homepage = "https://github.com/yoyz/picoloop";
platforms = platforms.linux;
license = licenses.bsd3;
mainProgram = "picoloop";
};
}