diff options
author | Hugh O'Brien <github@hughobrien.ie> | 2023-07-01 01:31:45 -0400 |
---|---|---|
committer | Hugh O'Brien <github@hughobrien.ie> | 2023-07-01 01:31:45 -0400 |
commit | 8d88b37bdb37a7a1ea2029708978c869c959b1b3 (patch) | |
tree | e89d529dd2f775c74b25f3886d9cb70c0f77af31 /pkgs/development/libraries/fpattern | |
parent | 6b28b64c2c6b487f549760523d127551e1359ac0 (diff) |
fpattern: init at v1.9
Diffstat (limited to 'pkgs/development/libraries/fpattern')
-rw-r--r-- | pkgs/development/libraries/fpattern/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/libraries/fpattern/default.nix b/pkgs/development/libraries/fpattern/default.nix new file mode 100644 index 0000000000000..b0ab2c3d2cea8 --- /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; + }; +}) |