2015-06-27 10:17:52 +03:00
|
|
|
{ stdenv, fetchFromGitHub, libsndfile, libsamplerate, liblo, libjack2 }:
|
2015-04-29 08:07:09 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-04 20:22:36 +03:00
|
|
|
name = "dirt-2015-04-28";
|
2015-04-29 08:07:09 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "Dirt";
|
|
|
|
owner = "tidalcycles";
|
|
|
|
rev = "cfc5e85318defda7462192b5159103c823ce61f7";
|
|
|
|
sha256 = "1shbyp54q64g6bsl6hhch58k3z1dyyy9ph6cq2xvdf8syy00sisz";
|
|
|
|
};
|
2015-06-27 10:17:52 +03:00
|
|
|
buildInputs = [ libsndfile libsamplerate liblo libjack2 ];
|
2015-06-04 23:01:01 +03:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s|./samples|$out/share/dirt/samples|" file.h
|
|
|
|
'';
|
2015-04-29 08:07:09 +03:00
|
|
|
configurePhase = ''
|
|
|
|
export DESTDIR=$out
|
|
|
|
'';
|
2015-06-04 23:01:01 +03:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/dirt/
|
|
|
|
cp -r samples $out/share/dirt/
|
|
|
|
'';
|
2015-04-29 08:07:09 +03:00
|
|
|
|
2015-06-04 23:01:01 +03:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-29 08:07:09 +03:00
|
|
|
description = "An unimpressive thingie for playing bits of samples with some level of accuracy";
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = https://github.com/tidalcycles/Dirt;
|
2015-06-04 23:01:01 +03:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ anderspapitto ];
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = with platforms; linux;
|
2015-04-29 08:07:09 +03:00
|
|
|
};
|
|
|
|
}
|