mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +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.
26 lines
719 B
Nix
26 lines
719 B
Nix
{lib, stdenv, fetchurl, fetchpatch}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tre";
|
|
version = "0.8.0";
|
|
src = fetchurl {
|
|
url = "https://laurikari.net/tre/${pname}-${version}.tar.gz";
|
|
sha256 = "1pd7qsa7vc3ybdc6h2gr4pm9inypjysf92kab945gg4qa6jp11my";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://sources.debian.net/data/main/t/tre/0.8.0-6/debian/patches/03-cve-2016-8859";
|
|
sha256 = "0navhizym6qxd4gngrsslbij8x9r3s67p1jzzhvsnq6ky49j7w3p";
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
description = "Lightweight and robust POSIX compliant regexp matching library";
|
|
homepage = "https://laurikari.net/tre/";
|
|
license = lib.licenses.bsd2;
|
|
mainProgram = "agrep";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|