nix/pkgs/authentik: 2022.8.1 -> 2022.11.3
This commit is contained in:
parent
555c767786
commit
fe09f27f70
5 changed files with 21 additions and 29 deletions
|
@ -1,12 +1,12 @@
|
||||||
{ pkgs, ... }@args:
|
{ pkgs, ... }@args:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2022.8.1-lukegb";
|
version = "2022.11.3-lukegb";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "lukegb";
|
owner = "lukegb";
|
||||||
repo = "authentik";
|
repo = "authentik";
|
||||||
rev = "6df74b42786facde859a7809b534f929a2499fc2";
|
rev = "a329164ec0f917d39a6d448c8c462d99dfe2c21a";
|
||||||
hash = "sha256:14hbihpb9wy8nc5qsibz4h0nwlnd4azb9i1w4isba5406rfxax3f";
|
hash = "sha256:17911l1v37iwyxf0y038as4plkn2w57axf0n5fiyr8pspfj6w6w2";
|
||||||
};
|
};
|
||||||
subargs = args // { inherit src version; };
|
subargs = args // { inherit src version; };
|
||||||
in rec {
|
in rec {
|
||||||
|
|
|
@ -6,7 +6,7 @@ pkgs.buildNpmPackage rec {
|
||||||
|
|
||||||
sourceRoot = "source/website";
|
sourceRoot = "source/website";
|
||||||
|
|
||||||
npmDepsHash = "sha256:1f8m97w8ib6yfrdp28r0mjl49mbxikfkyap6by7fxmcgirvdx6xg";
|
npmDepsHash = "sha256:14irk0j3mbc4g5ps3hgps19brv98ggkc438vdz7v1b0ardjl3mpg";
|
||||||
npmBuildFlags = "-- --config docusaurus.docs-only.js";
|
npmBuildFlags = "-- --config docusaurus.docs-only.js";
|
||||||
|
|
||||||
dontNpmInstall = true;
|
dontNpmInstall = true;
|
||||||
|
|
|
@ -4,6 +4,6 @@ pkgs.buildGoModule {
|
||||||
pname = "authentik-server";
|
pname = "authentik-server";
|
||||||
inherit src version;
|
inherit src version;
|
||||||
|
|
||||||
vendorSha256 = "09r4xgcslhz3dc0kr6df6ak7x7r8602jpj4g48s3ljqn19bp9iav";
|
vendorSha256 = "0gzwxnzinsnr5drcpxj8009jpwrvlwmpzy0yxf1v6j6chbpgj4x1";
|
||||||
subPackages = "cmd/server";
|
subPackages = "cmd/server";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ depot, src, ... }:
|
{ depot, src, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = depot.third_party.nixpkgsOld;
|
|
||||||
inherit (pkgs) poetry2nix;
|
inherit (pkgs) poetry2nix;
|
||||||
pyproject = pkgs.runCommand "authentik-pyproject" { src = "${src}/pyproject.toml"; } ''
|
pyproject = pkgs.runCommand "authentik-pyproject" { src = "${src}/pyproject.toml"; } ''
|
||||||
sed 's/extras = \["standard"\],//' $src > $out
|
sed 's/extras = \["standard"\],//' $src > $out
|
||||||
|
@ -19,10 +18,19 @@ let
|
||||||
'';
|
'';
|
||||||
app = poetry2nix.mkPoetryApplication rec {
|
app = poetry2nix.mkPoetryApplication rec {
|
||||||
projectDir = fixedSrc;
|
projectDir = fixedSrc;
|
||||||
python = pkgs.python310;
|
python = pkgs.python311;
|
||||||
overrides = poetry2nix.overrides.withDefaults (self: super: {
|
overrides = poetry2nix.overrides.withDefaults (self: super: {
|
||||||
|
dumb-init = super.dumb-init.overridePythonAttrs (old: {
|
||||||
|
nativeBuildInputs = old.nativeBuildInputs ++ [ self.setuptools ];
|
||||||
|
});
|
||||||
click-didyoumean = super.click-didyoumean.overridePythonAttrs (old: {
|
click-didyoumean = super.click-didyoumean.overridePythonAttrs (old: {
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ self.poetry ];
|
nativeBuildInputs = old.nativeBuildInputs ++ [ self.poetry ];
|
||||||
|
});
|
||||||
|
bump2version = super.bump2version.overridePythonAttrs (old: {
|
||||||
|
nativeBuildInputs = old.nativeBuildInputs ++ [ self.setuptools ];
|
||||||
|
});
|
||||||
|
opencontainers = super.opencontainers.overridePythonAttrs (old: {
|
||||||
|
nativeBuildInputs = old.nativeBuildInputs ++ [ self.setuptools self.pytest-runner ];
|
||||||
});
|
});
|
||||||
xmlsec = super.xmlsec.overridePythonAttrs (old: {
|
xmlsec = super.xmlsec.overridePythonAttrs (old: {
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ self.pkgconfig ];
|
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ self.pkgconfig ];
|
||||||
|
@ -36,26 +44,10 @@ let
|
||||||
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
|
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
hatch-vcs = (super.hatch-vcs or (self.buildPythonPackage rec {
|
urllib3-secure-extra = super.urllib3-secure-extra.overridePythonAttrs (old: {
|
||||||
pname = "hatch-vcs";
|
nativeBuildInputs = old.nativeBuildInputs ++ [ self.flit-core ];
|
||||||
version = "0.2.0";
|
|
||||||
format = "pyproject";
|
|
||||||
|
|
||||||
nativeBuildInputs = with self; [ hatchling ];
|
|
||||||
propagatedBuildInputs = with self; [ hatchling setuptools-scm ];
|
|
||||||
checkInputs = with self; [ pkgs.git pytestCheckHook ];
|
|
||||||
|
|
||||||
src = self.fetchPypi {
|
|
||||||
pname = "hatch_vcs";
|
|
||||||
inherit version;
|
|
||||||
sha256 = "1zxb12lrrl1n7ijcxl8mvv94lnhn6b52c1jx6jq9pv2fncrxf4wr";
|
|
||||||
};
|
|
||||||
}));
|
|
||||||
watchfiles = self.callPackage "${pkgs.path}/pkgs/development/python-modules/watchfiles/default.nix" {};
|
|
||||||
uvicorn = (self.callPackage "${pkgs.path}/pkgs/development/python-modules/uvicorn/default.nix" {}).overridePythonAttrs (old: {
|
|
||||||
propagatedBuildInputs = old.propagatedBuildInputs ++ old.passthru.optional-dependencies.standard;
|
|
||||||
});
|
});
|
||||||
inherit (pkgs.python310.pkgs) ua-parser;
|
watchfiles = self.callPackage "${pkgs.path}/pkgs/development/python-modules/watchfiles/default.nix" {};
|
||||||
});
|
});
|
||||||
|
|
||||||
buildInputs = [ pkgs.bash ];
|
buildInputs = [ pkgs.bash ];
|
||||||
|
|
|
@ -6,7 +6,7 @@ pkgs.buildNpmPackage {
|
||||||
|
|
||||||
sourceRoot = "source/web";
|
sourceRoot = "source/web";
|
||||||
|
|
||||||
npmDepsHash = "sha256:1fdry3ckzl4hyb3f0k4kp4m5chbi94na9y6530rpzc2803khwmnx";
|
npmDepsHash = "sha256:0s60hqjy97vmgiql0aypxq8qkax40z97v539szambg0q0zbrrg4a";
|
||||||
|
|
||||||
dontNpmInstall = true;
|
dontNpmInstall = true;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue