nixpkgs/pkgs/by-name/li/librist/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

49 lines
891 B
Nix

{ stdenv
, lib
, fetchFromGitLab
, meson
, ninja
, pkg-config
, cjson
, cmocka
, mbedtls
}:
stdenv.mkDerivation rec {
pname = "librist";
version = "0.2.10";
src = fetchFromGitLab {
domain = "code.videolan.org";
owner = "rist";
repo = "librist";
rev = "v${version}";
hash = "sha256-8N4wQXxjNZuNGx/c7WVAV5QS48Bff5G3t11UkihT+K0=";
};
patches = [
# https://github.com/NixOS/nixpkgs/pull/257020
./darwin.patch
];
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
cjson
cmocka
mbedtls
];
meta = with lib; {
description = "Library that can be used to easily add the RIST protocol to your application";
homepage = "https://code.videolan.org/rist/librist";
license = with licenses; [ bsd2 mit isc ];
maintainers = with maintainers; [ raphaelr sebtm ];
platforms = platforms.all;
};
}