mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +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.
31 lines
741 B
Nix
31 lines
741 B
Nix
{ lib, stdenv, fetchFromGitHub, fftw, gtk2, libao, libsamplerate
|
|
, libsndfile, ncurses, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "waon";
|
|
version = "0.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kichiki";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1xmq8d2rj58xbp4rnyav95y1vnz3r9s9db7xxfa2rd0ilq0ps4y7";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ fftw gtk2 libao libsamplerate libsndfile ncurses ];
|
|
|
|
installPhase = ''
|
|
install -Dt $out/bin waon pv gwaon
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Wave-to-Notes transcriber";
|
|
homepage = "https://kichiki.github.io/WaoN/";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.puckipedia ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|