mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
48 lines
843 B
Nix
48 lines
843 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
ninja,
|
|
pkg-config,
|
|
meson,
|
|
libevent,
|
|
curl,
|
|
spdlog,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "coeurl";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "nheko.im";
|
|
owner = "nheko-reborn";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-NGplM5c/dMGSQbhKeuPOTWL8KsqvMd/76YuwCxnqNNE=";
|
|
};
|
|
postPatch = ''
|
|
substituteInPlace subprojects/curl.wrap --replace '[provides]' '[provide]'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
ninja
|
|
pkg-config
|
|
meson
|
|
];
|
|
|
|
buildInputs = [
|
|
libevent
|
|
curl
|
|
spdlog
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple async wrapper around CURL for C++";
|
|
homepage = "https://nheko.im/nheko-reborn/coeurl";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
};
|
|
}
|