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.
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, lv2
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, libsndfile
|
|
, serd
|
|
, sord
|
|
, sratom
|
|
, gitUpdater
|
|
|
|
# test derivations
|
|
, pipewire
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lilv";
|
|
version = "0.24.24";
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://download.drobilla.net/${pname}-${version}.tar.xz";
|
|
hash = "sha256-a7a+n4hQQXbQZC8S3oCbK54txVYhporbjH7bma76u08=";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config python3 ];
|
|
buildInputs = [ libsndfile serd sord sratom ];
|
|
propagatedBuildInputs = [ lv2 ];
|
|
|
|
mesonFlags = [
|
|
"-Ddocs=disabled"
|
|
# Tests require building a shared library.
|
|
(lib.mesonEnable "tests" (!stdenv.hostPlatform.isStatic))
|
|
];
|
|
|
|
passthru = {
|
|
tests = {
|
|
inherit pipewire;
|
|
};
|
|
updateScript = gitUpdater {
|
|
url = "https://gitlab.com/lv2/lilv.git";
|
|
rev-prefix = "v";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "http://drobilla.net/software/lilv";
|
|
description = "C library to make the use of LV2 plugins";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|