about summary refs log tree commit diff
path: root/pkgs/by-name/az/azurite/package.nix
blob: 8f70c247fc1ec7516755c4276e505a0411e84ffe (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
29
30
31
32
33
34
35
36
37
38
39
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";
  };
}