nixpkgs/pkgs/by-name/lv/lv2/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

66 lines
1.4 KiB
Nix

{ stdenv
, lib
, fetchurl
, meson
, ninja
, pipewire
, gitUpdater
}:
stdenv.mkDerivation rec {
pname = "lv2";
version = "1.18.10";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://lv2plug.in/spec/${pname}-${version}.tar.xz";
hash = "sha256-eMUbzyG1Tli7Yymsy7Ta4Dsu15tSD5oB5zS9neUwlT8=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
];
mesonFlags = [
# install validators to $dev
"--bindir=${placeholder "dev"}/bin"
# These are just example plugins. They pull in outdated gtk-2
# dependency and many other things. Upstream would like to
# eventually move them of the project:
# https://gitlab.com/lv2/lv2/-/issues/57#note_1096060029
"-Dplugins=disabled"
# Pulls in spell checkers among other things.
"-Dtests=disabled"
# Avoid heavyweight python dependencies.
"-Ddocs=disabled"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
"-Dlv2dir=${placeholder "out"}/lib/lv2"
];
passthru = {
tests = {
inherit pipewire;
};
updateScript = gitUpdater {
# No nicer place to find latest release.
url = "https://gitlab.com/lv2/lv2.git";
rev-prefix = "v";
};
};
meta = with lib; {
homepage = "https://lv2plug.in";
description = "Plugin standard for audio systems";
mainProgram = "lv2_validate";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.unix;
};
}