Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 stdenv, lib, fetchurl,
3 cmake, perl,
4}:
5
6stdenv.mkDerivation rec {
7 pname = "rinutils";
8 version = "0.10.1";
9
10 meta = with lib; {
11 homepage = "https://github.com/shlomif/rinutils";
12 license = licenses.mit;
13 };
14
15 src = fetchurl {
16 url = "https://github.com/shlomif/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
17 sha256 = "sha256-MewljOmd57u+efMzjOcwSNrEVCUEXrK9DWvZLRuLmvs=";
18 };
19
20 nativeBuildInputs = [ cmake perl ];
21
22 # https://github.com/shlomif/rinutils/issues/5
23 # (variable was unused at time of writing)
24 postPatch = ''
25 substituteInPlace librinutils.pc.in \
26 --replace '$'{exec_prefix}/@RINUTILS_INSTALL_MYLIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
27 '';
28}