depot/third_party/nixpkgs/pkgs/development/libraries/rinutils/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

34 lines
928 B
Nix

{ stdenv
, lib
, fetchurl
, cmake
, perl
}:
stdenv.mkDerivation rec {
pname = "rinutils";
version = "0.10.3";
src = fetchurl {
url = "https://github.com/shlomif/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-+eUn03psyMe4hwraY8qiTzKrDSn9ERbfPrtoZYMDCVU=";
};
nativeBuildInputs = [ cmake perl ];
# 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@
'';
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 = [ ];
platforms = platforms.all;
};
}