Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 stdenv,
3 lib,
4 fetchurl,
5 cmake,
6 perl,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "rinutils";
11 version = "0.10.3";
12
13 src = fetchurl {
14 url = "https://github.com/shlomif/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
15 sha256 = "sha256-+eUn03psyMe4hwraY8qiTzKrDSn9ERbfPrtoZYMDCVU=";
16 };
17
18 nativeBuildInputs = [
19 cmake
20 perl
21 ];
22
23 # https://github.com/shlomif/rinutils/issues/5
24 # (variable was unused at time of writing)
25 postPatch = ''
26 substituteInPlace librinutils.pc.in \
27 --replace '$'{exec_prefix}/@RINUTILS_INSTALL_MYLIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
28 '';
29
30 meta = {
31 description = "C11 / gnu11 utilities C library by Shlomi Fish / Rindolf";
32 homepage = "https://github.com/shlomif/rinutils";
33 changelog = "https://github.com/shlomif/rinutils/raw/${version}/NEWS.asciidoc";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ ];
36 platforms = lib.platforms.all;
37 };
38}