mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
928 B
Nix
35 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;
|
|
};
|
|
}
|