Unbork journals audit logs and introduce audit option (#379629)
[NixPkgs.git] / pkgs / by-name / m2 / m2libc / package.nix
blob084f02db253cf8b7bcbbadd3e3227179f84c5bf5
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "m2libc";
10   version = "unstable-2023-05-22";
12   src = fetchFromGitHub {
13     owner = "oriansj";
14     repo = "M2libc";
15     rev = "de7c75f144176c3b9be77695d9bf94440445aeae";
16     hash = "sha256-248plvODhBRfmx7zOmf05ICbk8vzSbaceZJ0j+wPaAY=";
17   };
19   patches = [
20     # # aarch64: syscall: mkdir -> mkdirat
21     # https://github.com/oriansj/M2libc/pull/17
22     (fetchpatch {
23       url = "https://github.com/oriansj/M2libc/commit/ff7c3023b3ab6cfcffc5364620b25f8d0279e96b.patch";
24       hash = "sha256-QAKddv4TixIQHpFa9SVu9fAkeKbzhQaxjaWzW2yJy7A=";
25     })
26   ];
28   installPhase = ''
29     runHook preInstall
31     mkdir -p $out/include
32     cp -r . $out/include/M2libc
34     runHook postInstall
35   '';
37   meta = with lib; {
38     description = "More standards compliant C library written in M2-Planet's C subset";
39     homepage = "https://github.com/oriansj/m2libc";
40     license = licenses.gpl3Only;
41     maintainers = teams.minimal-bootstrap.members;
42     platforms = [
43       "i686-linux"
44       "x86_64-linux"
45       "aarch64-linux"
46       "riscv32-linux"
47       "riscv64-linux"
48     ];
49   };