nixpkgs/pkgs/by-name/li/libsigsegv/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

38 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl
, enableSigbusFix ? false # required by kernels < 3.18.6
}:
stdenv.mkDerivation rec {
pname = "libsigsegv";
version = "2.14";
src = fetchurl {
url = "mirror://gnu/libsigsegv/libsigsegv-${version}.tar.gz";
sha256 = "sha256-zaw5QYAzZM+BqQhJm+t5wgDq1gtrW0DK0ST9HgbKopU=";
};
patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
doCheck = true; # not cross;
meta = {
homepage = "https://www.gnu.org/software/libsigsegv/";
description = "Library to handle page faults in user mode";
longDescription = ''
GNU libsigsegv is a library for handling page faults in user mode. A
page fault occurs when a program tries to access to a region of memory
that is currently not available. Catching and handling a page fault is
a useful technique for implementing pageable virtual memory,
memory-mapped access to persistent databases, generational garbage
collectors, stack overflow handlers, distributed shared memory, and
more.
'';
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}