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