mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +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.
28 lines
844 B
Nix
28 lines
844 B
Nix
{ lib, stdenv, fetchurl, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "oniguruma";
|
|
version = "6.9.9";
|
|
|
|
# Note: do not use fetchpatch or fetchFromGitHub to keep this package available in __bootPackages
|
|
src = fetchurl {
|
|
url = "https://github.com/kkos/oniguruma/releases/download/v${version}/onig-${version}.tar.gz";
|
|
sha256 = "sha256-YBYr07n8b0iG1MegeSX/03QWdzL1Xc6MSRv9nNgYps8=";
|
|
};
|
|
|
|
outputs = [ "dev" "lib" "out" ];
|
|
outputBin = "dev"; # onig-config
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
configureFlags = [ "--enable-posix-api=yes" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/kkos/oniguruma";
|
|
description = "Regular expressions library";
|
|
mainProgram = "onig-config";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ artturin ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|