depot/third_party/nixpkgs/pkgs/development/libraries/fpattern/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

28 lines
720 B
Nix

{ 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;
};
})