nixpkgs/pkgs/applications/misc/sbagen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
785 B
Nix
Raw Normal View History

2021-01-15 06:42:41 +01:00
{ lib, stdenv, fetchurl }:
2017-03-06 16:13:11 +01:00
stdenv.mkDerivation rec {
pname = "sbagen";
version = "1.4.4";
2017-03-06 16:13:11 +01:00
src = fetchurl {
url = "https://uazu.net/sbagen/sbagen-${version}.tgz";
2017-03-06 16:13:11 +01:00
sha256 = "0w62yk1b0hq79kl0angma897yqa8p1ww0dwydf3zlwav333prkd2";
};
postPatch = ''
patchShebangs ./mk
'';
buildPhase = "./mk";
installPhase = ''
mkdir -p $out/{bin,share/sbagen/doc}
cp -r --target-directory=$out/share/sbagen examples scripts river1.ogg river2.ogg
cp sbagen $out/bin
cp --target-directory=$out/share/sbagen/doc README.txt SBAGEN.txt theory{,2}.txt {wave,holosync,focus,TODO}.txt
'';
2017-03-06 16:13:11 +01:00
meta = {
description = "Binaural sound generator";
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" ];
};
}