at 24.11-pre 720 B view raw
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation (finalAttrs: { 4 version = "1.9"; 5 pname = "fpattern"; 6 7 src = fetchFromGitHub { 8 owner = "Loadmaster"; 9 repo = "fpattern"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-/QvMQCmoocaXfDm3/c3IAPyfZqR6d7IiJ9UoFKZTpVI="; 12 }; 13 14 installPhase = '' 15 runHook preInstall 16 mkdir -p $out/include 17 cp *.c *.h $out/include 18 runHook postInstall 19 ''; 20 21 meta = with lib; { 22 homepage = "https://github.com/Loadmaster/fpattern"; 23 description = "Filename pattern matching library functions for DOS, Windows, and Unix"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ hughobrien ]; 26 platforms = with platforms; linux; 27 }; 28})