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

29 lines
871 B
Nix

{ stdenv, lib, fetchgit, cmake, pkg-config }:
stdenv.mkDerivation {
pname = "libnl-tiny";
version = "unstable-2023-12-05";
src = fetchgit {
url = "https://git.openwrt.org/project/libnl-tiny.git";
rev = "965c4bf49658342ced0bd6e7cb069571b4a1ddff";
hash = "sha256-kegTV7FXMERW7vjRZo/Xp4cbSBZmynBgge2lK71Fx94=";
};
nativeBuildInputs = [ cmake pkg-config ];
preConfigure = ''
sed -e 's|''${prefix}/@CMAKE_INSTALL_LIBDIR@|@CMAKE_INSTALL_FULL_LIBDIR@|g' \
-e 's|''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@|@CMAKE_INSTALL_FULL_INCLUDEDIR@|g' \
-i libnl-tiny.pc.in
'';
meta = with lib; {
description = "Tiny OpenWrt fork of libnl";
homepage = "https://git.openwrt.org/?p=project/libnl-tiny.git;a=summary";
license = licenses.isc;
maintainers = with maintainers; [ mkg20001 ];
platforms = platforms.linux;
};
}