mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
785 B
Nix
32 lines
785 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sbagen";
|
|
version = "1.4.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://uazu.net/sbagen/sbagen-${version}.tgz";
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Binaural sound generator";
|
|
homepage = "http://uazu.net/sbagen";
|
|
license = lib.licenses.gpl2;
|
|
platforms = [ "i686-linux" ];
|
|
};
|
|
}
|