nixpkgs/pkgs/development/libraries/rinutils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
946 B
Nix
Raw Normal View History

2023-04-29 23:18:00 +00:00
{ stdenv
, lib
, fetchurl
, cmake
, perl
2021-01-31 19:59:11 +00:00
}:
stdenv.mkDerivation rec {
pname = "rinutils";
2023-04-29 23:17:43 +00:00
version = "0.10.2";
2021-01-31 19:59:11 +00:00
src = fetchurl {
url = "https://github.com/shlomif/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
2023-04-29 23:17:43 +00:00
sha256 = "sha256-2H/hGZcit/qb1QjhNTg/8HiPvX1lXL75dXwjIS+MIXs=";
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@
'';
2023-04-29 23:18:00 +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-01-31 19:59:11 +00:00
}