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