mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
realm-studio: init at 15.2.1 (#325967)
Co-authored-by: Matteo Pacini <matteo@codecraft.it>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
(cherry picked from commit e1770bd119
)
This commit is contained in:
parent
b1999f118d
commit
7fdeec81f9
36
pkgs/by-name/re/realm-studio/package.nix
Normal file
36
pkgs/by-name/re/realm-studio/package.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
fetchurl,
|
||||
unzip,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "realm-studio";
|
||||
version = "15.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://static.realm.io/downloads/realm-studio/Realm%20Studio-${finalAttrs.version}-mac.zip";
|
||||
hash = "sha256-Vvc432P7VQxCVcS7i7JwOx7ByhX+Ea0Oz7ogvAH8Xoo=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/Applications
|
||||
cp -r "Realm Studio.app" $out/Applications/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Visual tool to view, edit, and model Realm databases.";
|
||||
homepage = "https://www.mongodb.com/docs/atlas/device-sdks/studio/";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ matteopacini ];
|
||||
platforms = lib.platforms.darwin;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user