2021-01-31 19:59:11 +00:00
|
|
|
{
|
|
|
|
stdenv, lib, fetchurl,
|
|
|
|
cmake, perl,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rinutils";
|
2022-07-29 20:47:58 +00:00
|
|
|
version = "0.10.1";
|
2021-01-31 19:59:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/shlomif/rinutils";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/shlomif/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
|
2022-07-29 20:47:58 +00:00
|
|
|
sha256 = "sha256-MewljOmd57u+efMzjOcwSNrEVCUEXrK9DWvZLRuLmvs=";
|
2021-01-31 19:59:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
2022-05-18 18:29:07 +00:00
|
|
|
|
|
|
|
# https://github.com/shlomif/rinutils/issues/5
|
|
|
|
# (variable was unused at time of writing)
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace librinutils.pc.in \
|
|
|
|
--replace '$'{exec_prefix}/@RINUTILS_INSTALL_MYLIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
|
|
|
|
'';
|
2021-01-31 19:59:11 +00:00
|
|
|
}
|