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