mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
uvwasi: init at 0.0.21
This commit is contained in:
parent
3d1f29646e
commit
808d7c9a2f
1 changed files with 57 additions and 0 deletions
57
pkgs/by-name/uv/uvwasi/package.nix
Normal file
57
pkgs/by-name/uv/uvwasi/package.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
lib,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
fetchpatch2,
|
||||
libuv,
|
||||
nix-update-script,
|
||||
stdenv,
|
||||
testers,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "uvwasi";
|
||||
version = "0.0.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nodejs";
|
||||
repo = "uvwasi";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-po2Pwqf97JXGKY8WysvyR1vSkqQ4XIF0VQG+83yV9nM=";
|
||||
};
|
||||
|
||||
# Patch was sent upstream: https://github.com/nodejs/uvwasi/pull/302.
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail 'DESTINATION ''${CMAKE_INSTALL_INCLUDEDIR}/uvwasi' 'DESTINATION ''${CMAKE_INSTALL_INCLUDEDIR}'
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
buildInputs = [
|
||||
libuv
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
|
||||
tests.pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
moduleNames = [ "uvwasi" ];
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "WASI syscall API built atop libuv";
|
||||
homepage = "https://github.com/nodejs/uvwasi";
|
||||
changelog = "https://github.com/nodejs/uvwasi/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ aduh95 ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue