nixpkgs/pkgs/by-name/ne/networking-ts-cxx/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
901 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "networking-ts-cxx";
version = "2019-02-27";
# Used until https://github.com/chriskohlhoff/networking-ts-impl/issues/17 is
# resolved and we can generate in Nix.
src = fetchFromGitHub {
owner = "chriskohlhoff";
repo = "networking-ts-impl";
rev = "c97570e7ceef436581be3c138868a19ad96e025b";
sha256 = "12b5lg989nn1b8v6x9fy3cxsf3hs5hr67bd1mfyh8pjikir7zv6j";
};
installPhase = ''
mkdir -p $out/{include,lib/pkgconfig}
cp -r include $out/
substituteAll ${./networking_ts.pc.in} $out/lib/pkgconfig/networking_ts.pc
'';
meta = with lib; {
description = "Experimental implementation of the C++ Networking Technical Specification";
homepage = "https://github.com/chriskohlhoff/networking-ts-impl";
license = licenses.boost;
maintainers = with maintainers; [ bhipple ];
};
}