about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/fpattern/default.nix
blob: e1b75f025c89f73834af564176385687a0f9c02c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation (finalAttrs: {
  version = "1.9";
  pname = "fpattern";

  src = fetchFromGitHub {
    owner = "Loadmaster";
    repo = "fpattern";
    rev = "v${finalAttrs.version}";
    hash = "sha256-/QvMQCmoocaXfDm3/c3IAPyfZqR6d7IiJ9UoFKZTpVI=";
  };

  installPhase = ''
    runHook preInstall
    mkdir -p $out/include
    cp *.c *.h $out/include
    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/Loadmaster/fpattern";
    description = "Filename pattern matching library functions for DOS, Windows, and Unix";
    license = licenses.mit;
    maintainers = with maintainers; [ hughobrien ];
    platforms = with platforms; linux;
  };
})