From 8d88b37bdb37a7a1ea2029708978c869c959b1b3 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Sat, 1 Jul 2023 01:31:45 -0400 Subject: [PATCH] fpattern: init at v1.9 --- .../libraries/fpattern/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/libraries/fpattern/default.nix diff --git a/pkgs/development/libraries/fpattern/default.nix b/pkgs/development/libraries/fpattern/default.nix new file mode 100644 index 000000000000..b0ab2c3d2cea --- /dev/null +++ b/pkgs/development/libraries/fpattern/default.nix @@ -0,0 +1,29 @@ +{ stdenv, lib, fetchFromGitHub }: + +stdenv.mkDerivation (finalAttrs: { + version = "1.9"; + pname = "fpattern"; + outputs = [ "out" "dev" ]; + + src = fetchFromGitHub { + owner = "Loadmaster"; + repo = finalAttrs.pname; + rev = "v${finalAttrs.version}"; + hash = "sha256-/QvMQCmoocaXfDm3/c3IAPyfZqR6d7IiJ9UoFKZTpVI="; + }; + + installPhase = '' + runHook preInstall + mkdir -p $out $dev/include + cp *.c *.h $dev/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; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b85950f1e450..c628635d9b35 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7846,6 +7846,8 @@ with pkgs; fpart = callPackage ../tools/misc/fpart { }; + fpattern = callPackage ../development/libraries/fpattern { }; + fping = callPackage ../tools/networking/fping { }; fpm = callPackage ../tools/package-management/fpm { };