2023-05-24 13:37:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, perl
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rinutils";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.10.2";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/shlomif/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-2H/hGZcit/qb1QjhNTg/8HiPvX1lXL75dXwjIS+MIXs=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
2022-09-30 11:47:45 +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@
|
|
|
|
'';
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C11 / gnu11 utilities C library by Shlomi Fish / Rindolf";
|
|
|
|
homepage = "https://github.com/shlomif/rinutils";
|
|
|
|
changelog = "https://github.com/shlomif/rinutils/raw/${version}/NEWS.asciidoc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2021-03-09 03:18:52 +00:00
|
|
|
}
|