at 24.05-pre 39 lines 954 B view raw
1{ lib 2, stdenv 3, fetchurl 4}: 5 6stdenv.mkDerivation { 7 pname = "fortify-headers"; 8 version = "1.1alpine3"; 9 10 # upstream only accessible via git - unusable during bootstrap, hence 11 # extract from the alpine package 12 src = fetchurl { 13 url = "https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/fortify-headers-1.1-r3.apk"; 14 name = "fortify-headers.tar.gz"; # ensure it's extracted as a .tar.gz 15 hash = "sha256-8A8JcKHIBgXpUuIP4zs3Q1yBs5jCGd5F3H2E8UN/S2g="; 16 }; 17 18 patches = [ 19 ./wchar-imports-skip.patch 20 ./restore-macros.patch 21 ]; 22 23 installPhase = '' 24 runHook preInstall 25 26 mkdir -p $out 27 cp -r include/fortify $out/include 28 29 runHook postInstall 30 ''; 31 32 meta = { 33 description = "Standalone header-based fortify-source implementation"; 34 homepage = "https://git.2f30.org/fortify-headers"; 35 license = lib.licenses.bsd0; 36 platforms = lib.platforms.all; 37 maintainers = with lib.maintainers; [ ris ]; 38 }; 39}