2021-01-15 06:42:41 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2017-03-06 16:13:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 21:29:51 +01:00
|
|
|
pname = "sbagen";
|
|
|
|
version = "1.4.4";
|
2007-09-12 12:56:56 +02:00
|
|
|
|
2017-03-06 16:13:11 +01:00
|
|
|
src = fetchurl {
|
2021-11-07 21:29:51 +01:00
|
|
|
url = "https://uazu.net/sbagen/sbagen-${version}.tgz";
|
2017-03-06 16:13:11 +01:00
|
|
|
sha256 = "0w62yk1b0hq79kl0angma897yqa8p1ww0dwydf3zlwav333prkd2";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./mk
|
|
|
|
'';
|
2007-09-12 12:56:56 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
buildPhase = "./mk";
|
2007-09-12 12:56:56 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/{bin,share/sbagen/doc}
|
2010-07-28 13:55:54 +02:00
|
|
|
cp -r --target-directory=$out/share/sbagen examples scripts river1.ogg river2.ogg
|
2007-09-12 12:56:56 +02:00
|
|
|
cp sbagen $out/bin
|
2010-07-28 13:55:54 +02:00
|
|
|
cp --target-directory=$out/share/sbagen/doc README.txt SBAGEN.txt theory{,2}.txt {wave,holosync,focus,TODO}.txt
|
|
|
|
'';
|
2007-09-12 12:56:56 +02:00
|
|
|
|
2017-03-06 16:13:11 +01:00
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Binaural sound generator";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://uazu.net/sbagen";
|
2021-01-15 06:42:41 +01:00
|
|
|
license = lib.licenses.gpl2;
|
2017-03-06 16:13:11 +01:00
|
|
|
platforms = [ "i686-linux" ];
|
2010-07-28 13:55:54 +02:00
|
|
|
};
|
2007-09-12 12:56:56 +02:00
|
|
|
}
|