about summary refs log tree commit diff
path: root/pkgs/by-name/az
diff options
context:
space:
mode:
authordanielalvsaaker <30574112+danielalvsaaker@users.noreply.github.com>2024-06-24 16:10:55 +0200
committerdanielalvsaaker <30574112+danielalvsaaker@users.noreply.github.com>2024-06-25 07:52:34 +0200
commit8eed63c05e466c14818687a17203d8bdd42edff9 (patch)
tree035bd80f04f970d1d44fe71939e24ffcbd8f3185 /pkgs/by-name/az
parenteec3d6bdf904fa5f59a795a5aa7611a6fe7d27ea (diff)
azurite: init at 3.31.0
Diffstat (limited to 'pkgs/by-name/az')
-rw-r--r--pkgs/by-name/az/azurite/package.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/az/azurite/package.nix b/pkgs/by-name/az/azurite/package.nix
new file mode 100644
index 0000000000000..8f70c247fc1ec
--- /dev/null
+++ b/pkgs/by-name/az/azurite/package.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildNpmPackage
+, fetchFromGitHub
+, stdenv
+, darwin
+, libsecret
+, pkg-config
+, python3
+}:
+
+buildNpmPackage rec {
+  pname = "azurite";
+  version = "3.31.0";
+
+  src = fetchFromGitHub {
+    owner = "Azure";
+    repo = "Azurite";
+    rev = "v${version}";
+    hash = "sha256-WT1eprN6SBnsfITCopybEHCuxrHvKEhdmVs7xL3cUi0=";
+  };
+
+  npmDepsHash = "sha256-+ptjsz2MDIB/aqu4UxkBLCcehtamFdmswNUsHs23LuE=";
+
+  nativeBuildInputs = [ pkg-config python3 ];
+  buildInputs = lib.optionals stdenv.isLinux [
+    libsecret
+  ] ++ lib.optionals stdenv.isDarwin (with darwin; [
+    Security
+    apple_sdk.frameworks.AppKit
+  ]);
+
+  meta = {
+    description = "An open source Azure Storage API compatible server";
+    homepage = "https://github.com/Azure/Azurite";
+    changelog = "https://github.com/Azure/Azurite/releases/tag/v${version}";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ danielalvsaaker ];
+    mainProgram = "azurite";
+  };
+}