baserow: 1.12.1 -> 1.13.3
This commit is contained in:
parent
322c6b09ac
commit
4658ec115e
4 changed files with 748 additions and 565 deletions
|
@ -9,21 +9,22 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.12.1";
|
version = "1.13.3";
|
||||||
suffix = lib.optionalString ossOnly "-oss";
|
suffix = lib.optionalString ossOnly "-oss";
|
||||||
src' = fetchFromGitLab {
|
src' = fetchFromGitLab {
|
||||||
owner = "bramw";
|
owner = "bramw";
|
||||||
repo = "baserow";
|
repo = "baserow";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0r231h22s6b6vv38l4ppbgbacad9az38wmvj7fflsd6hbmz9lgfd";
|
sha256 = "00fi5hqz55k08y7wwds42d1z6q1ax2hpb2x5fi1nyc3ymk7khr09";
|
||||||
};
|
};
|
||||||
src = if ossOnly then pkgs.runCommand "${src'.name}${suffix}" {} ''
|
src = if ossOnly then pkgs.runCommand "${src'.name}${suffix}" {} ''
|
||||||
cp -R ${src'} $out
|
cp -R ${src'} $out
|
||||||
chmod -R u+w $out
|
chmod -R u+w $out
|
||||||
rm -rf $out/premium
|
rm -rf $out/premium
|
||||||
|
rm -rf $out/enterprise
|
||||||
|
|
||||||
sed -i '/baserow_premium/d' $out/backend/src/baserow/config/settings/base.py
|
sed -i -e '/baserow_premium/d' -e '/baserow_enterprise/d' $out/backend/src/baserow/config/settings/base.py
|
||||||
sed -i '/premium/d' $out/web-frontend/config/nuxt.config.base.js
|
sed -i -e '/premium/d' -e '/enterprise/d' $out/web-frontend/config/nuxt.config.base.js
|
||||||
'' else src';
|
'' else src';
|
||||||
web-frontend-deps = import ./web-frontend {
|
web-frontend-deps = import ./web-frontend {
|
||||||
inherit pkgs nodejs;
|
inherit pkgs nodejs;
|
||||||
|
@ -37,6 +38,7 @@ let
|
||||||
let
|
let
|
||||||
oss = import ./backend/pynixify/overlay.nix self super;
|
oss = import ./backend/pynixify/overlay.nix self super;
|
||||||
premium = import ./premium-backend/pynixify/overlay.nix self super;
|
premium = import ./premium-backend/pynixify/overlay.nix self super;
|
||||||
|
enterprise = import ./enterprise-backend/pynixify/overlay.nix self super;
|
||||||
baserow-premium-backend = premium.baserow-premium-backend.overridePythonAttrs (_: {
|
baserow-premium-backend = premium.baserow-premium-backend.overridePythonAttrs (_: {
|
||||||
inherit version;
|
inherit version;
|
||||||
src = "${src}/premium/backend";
|
src = "${src}/premium/backend";
|
||||||
|
@ -44,6 +46,10 @@ let
|
||||||
install -m0644 $src/src/baserow_premium/public_key.pem $out/${python.sitePackages}/baserow_premium/public_key.pem
|
install -m0644 $src/src/baserow_premium/public_key.pem $out/${python.sitePackages}/baserow_premium/public_key.pem
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
baserow-enterprise-backend = enterprise.baserow-enterprise-backend.overridePythonAttrs (_: {
|
||||||
|
inherit version;
|
||||||
|
src = "${src}/enterprise/backend";
|
||||||
|
});
|
||||||
in
|
in
|
||||||
oss // (if !ossOnly then premium else {}) // {
|
oss // (if !ossOnly then premium else {}) // {
|
||||||
baserow-backend = oss.baserow-backend.overridePythonAttrs (oldAttrs: {
|
baserow-backend = oss.baserow-backend.overridePythonAttrs (oldAttrs: {
|
||||||
|
@ -53,9 +59,9 @@ let
|
||||||
# Yeet. Just assume everything is installed in the environment already.
|
# Yeet. Just assume everything is installed in the environment already.
|
||||||
> requirements/base.txt
|
> requirements/base.txt
|
||||||
'';
|
'';
|
||||||
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ lib.optional (!ossOnly) baserow-premium-backend;
|
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ lib.optionals (!ossOnly) [ baserow-premium-backend baserow-enterprise-backend ];
|
||||||
});
|
});
|
||||||
} // (if !ossOnly then { inherit baserow-premium-backend; } else {});
|
} // (if !ossOnly then { inherit baserow-premium-backend baserow-enterprise-backend; } else {});
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -77,6 +83,9 @@ in
|
||||||
${lib.optionalString (!ossOnly) ''
|
${lib.optionalString (!ossOnly) ''
|
||||||
mkdir -p $outpath/premium
|
mkdir -p $outpath/premium
|
||||||
cp -R premium/web-frontend $outpath/premium/web-frontend
|
cp -R premium/web-frontend $outpath/premium/web-frontend
|
||||||
|
|
||||||
|
mkdir -p $outpath/enterprise
|
||||||
|
cp -R enterprise/web-frontend $outpath/enterprise/web-frontend
|
||||||
''}
|
''}
|
||||||
|
|
||||||
# Disable prompts
|
# Disable prompts
|
||||||
|
|
5
nix/pkgs/baserow/enterprise-backend/pynixify/overlay.nix
Normal file
5
nix/pkgs/baserow/enterprise-backend/pynixify/overlay.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
self: super: {
|
||||||
|
baserow-enterprise-backend =
|
||||||
|
self.callPackage ./packages/baserow-enterprise-backend { };
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
# WARNING: This file was automatically generated. You should avoid editing it.
|
||||||
|
# If you run pynixify again, the file will be either overwritten or
|
||||||
|
# deleted, and you will lose the changes you made to it.
|
||||||
|
|
||||||
|
{ buildPythonPackage, fetchPypi, lib }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "baserow-enterprise-backend";
|
||||||
|
version = "0.1dev";
|
||||||
|
|
||||||
|
src = lib.cleanSource ../../..;
|
||||||
|
|
||||||
|
# TODO FIXME
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; { homepage = "https://baserow.io"; };
|
||||||
|
}
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue