-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
686 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
{ authentik-src | ||
, authentikComponents | ||
, makeWrapper | ||
, runCommandLocal | ||
{ | ||
authentik-src, | ||
authentikComponents, | ||
makeWrapper, | ||
runCommandLocal, | ||
}: | ||
|
||
runCommandLocal "authentik-manage" { | ||
nativeBuildInputs = [ makeWrapper ]; | ||
} '' | ||
mkdir -vp $out/bin | ||
cp -v ${authentik-src}/manage.py $out/bin/manage.py | ||
runCommandLocal "authentik-manage" | ||
{ | ||
nativeBuildInputs = [ makeWrapper ]; | ||
} | ||
'' | ||
mkdir -vp $out/bin | ||
cp -v ${authentik-src}/manage.py $out/bin/manage.py | ||
wrapProgram $out/bin/manage.py \ | ||
--prefix PATH : ${authentikComponents.pythonEnv}/bin \ | ||
--prefix PYTHONPATH : ${authentikComponents.staticWorkdirDeps} | ||
'' | ||
wrapProgram $out/bin/manage.py \ | ||
--prefix PATH : ${authentikComponents.pythonEnv}/bin \ | ||
--prefix PYTHONPATH : ${authentikComponents.staticWorkdirDeps} | ||
'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
{ authentik-src | ||
, authentikComponents | ||
, makeWrapper | ||
, runCommandLocal | ||
{ | ||
authentik-src, | ||
authentikComponents, | ||
makeWrapper, | ||
runCommandLocal, | ||
}: | ||
|
||
runCommandLocal "authentik-migrate.py" { | ||
nativeBuildInputs = [ makeWrapper ]; | ||
} '' | ||
mkdir -vp $out/bin | ||
cp ${authentik-src}/lifecycle/migrate.py $out/bin/migrate.py | ||
chmod +w $out/bin/migrate.py | ||
patchShebangs $out/bin/migrate.py | ||
substituteInPlace $out/bin/migrate.py \ | ||
--replace \ | ||
'migration_path in Path(__file__).parent.absolute().glob("system_migrations/*.py")' \ | ||
'migration_path in Path("${authentikComponents.staticWorkdirDeps}/lifecycle").glob("system_migrations/*.py")' | ||
wrapProgram $out/bin/migrate.py \ | ||
--prefix PATH : ${authentikComponents.pythonEnv}/bin \ | ||
--prefix PYTHONPATH : ${authentikComponents.staticWorkdirDeps} | ||
'' | ||
runCommandLocal "authentik-migrate.py" | ||
{ | ||
nativeBuildInputs = [ makeWrapper ]; | ||
} | ||
'' | ||
mkdir -vp $out/bin | ||
cp ${authentik-src}/lifecycle/migrate.py $out/bin/migrate.py | ||
chmod +w $out/bin/migrate.py | ||
patchShebangs $out/bin/migrate.py | ||
substituteInPlace $out/bin/migrate.py \ | ||
--replace \ | ||
'migration_path in Path(__file__).parent.absolute().glob("system_migrations/*.py")' \ | ||
'migration_path in Path("${authentikComponents.staticWorkdirDeps}/lifecycle").glob("system_migrations/*.py")' | ||
wrapProgram $out/bin/migrate.py \ | ||
--prefix PATH : ${authentikComponents.pythonEnv}/bin \ | ||
--prefix PYTHONPATH : ${authentikComponents.staticWorkdirDeps} | ||
'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
(import | ||
( | ||
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in | ||
fetchTarball { | ||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.flake-compat.locked.narHash; | ||
} | ||
) | ||
{ src = ./.; } | ||
).defaultNix | ||
(import ( | ||
let | ||
lock = builtins.fromJSON (builtins.readFile ./flake.lock); | ||
in | ||
fetchTarball { | ||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.flake-compat.locked.narHash; | ||
} | ||
) { src = ./.; }).defaultNix |
Oops, something went wrong.