picoloop: init at 0.77e (#92269)

This commit is contained in:
Sohalt 2020-09-10 20:34:44 +02:00 committed by GitHub
parent 484632983f
commit 18f0fdce61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ stdenv, fetchFromGitHub, libpulseaudio, SDL2, SDL2_image, SDL2_ttf, alsaLib, libjack2 }:
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
alsaLib
libjack2
];
sourceRoot = "source/picoloop";
makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ];
NIX_CFLAGS_COMPILE = [ "-I${SDL2.dev}/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 stdenv.lib; {
description = "Picoloop is a synth and a stepsequencer (a clone of the famous nanoloop).";
homepage = "https://github.com/yoyz/picoloop";
platforms = platforms.linux;
license = licenses.bsd3;
};
}

View file

@ -22486,6 +22486,8 @@ in
inherit (darwin.apple_sdk.frameworks) IOKit;
};
picoloop = callPackage ../applications/audio/picoloop { };
pidgin = callPackage ../applications/networking/instant-messengers/pidgin {
openssl = if config.pidgin.openssl or true then openssl else null;
gnutls = if config.pidgin.gnutls or false then gnutls else null;