2015-04-29 06:07:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libsndfile, libsamplerate, liblo, jack2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-04 18:22:36 +01:00
|
|
|
name = "dirt-2015-04-28";
|
2015-04-29 06:07:09 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "Dirt";
|
|
|
|
owner = "tidalcycles";
|
|
|
|
rev = "cfc5e85318defda7462192b5159103c823ce61f7";
|
|
|
|
sha256 = "1shbyp54q64g6bsl6hhch58k3z1dyyy9ph6cq2xvdf8syy00sisz";
|
|
|
|
};
|
|
|
|
buildInputs = [ libsndfile libsamplerate liblo jack2 ];
|
2015-06-04 21:01:01 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s|./samples|$out/share/dirt/samples|" file.h
|
|
|
|
'';
|
2015-04-29 06:07:09 +01:00
|
|
|
configurePhase = ''
|
|
|
|
export DESTDIR=$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";
|
|
|
|
homepage = "https://github.com/tidalcycles/Dirt";
|
2015-06-04 21:01:01 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ anderspapitto ];
|
2015-04-29 06:07:09 +01:00
|
|
|
};
|
|
|
|
}
|