2015-06-27 09:17:52 +02:00
|
|
|
{ stdenv, fetchFromGitHub, libsndfile, libsamplerate, liblo, libjack2 }:
|
2015-04-29 07:07:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-01 08:09:46 +01:00
|
|
|
name = "dirt-2018-01-01";
|
2015-04-29 07:07:09 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "Dirt";
|
|
|
|
owner = "tidalcycles";
|
2018-01-01 08:09:46 +01:00
|
|
|
rev = "b09604c7d8e581bc7799d7e2ad293e7cdd254bda";
|
|
|
|
sha256 = "13adglk2d31d7mswfvi02b0rjdhzmsv11cc8smhidmrns3f9s96n";
|
|
|
|
fetchSubmodules = true;
|
2015-04-29 07:07:09 +02:00
|
|
|
};
|
2015-06-27 09:17:52 +02:00
|
|
|
buildInputs = [ libsndfile libsamplerate liblo libjack2 ];
|
2015-06-04 22:01:01 +02:00
|
|
|
postPatch = ''
|
2018-01-01 08:09:46 +01:00
|
|
|
sed -i "s|./samples|$out/share/dirt/samples|" dirt.c
|
2015-06-04 22:01:01 +02:00
|
|
|
'';
|
2018-01-01 15:52:57 +01:00
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
2015-06-04 22:01:01 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/dirt/
|
|
|
|
cp -r samples $out/share/dirt/
|
|
|
|
'';
|
2015-04-29 07:07:09 +02:00
|
|
|
|
2015-06-04 22:01:01 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-29 07:07:09 +02:00
|
|
|
description = "An unimpressive thingie for playing bits of samples with some level of accuracy";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/tidalcycles/Dirt;
|
2015-06-04 22:01:01 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ anderspapitto ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; linux;
|
2015-04-29 07:07:09 +02:00
|
|
|
};
|
|
|
|
}
|