forked from Fediversity/Fediversity
parent
a5c310ad03
commit
d78995b34c
1 changed files with 10 additions and 8 deletions
|
@ -6,17 +6,14 @@
|
||||||
config = { };
|
config = { };
|
||||||
overlays = [ (import ./nix/overlay.nix) ];
|
overlays = [ (import ./nix/overlay.nix) ];
|
||||||
},
|
},
|
||||||
}@args:
|
}:
|
||||||
let
|
let
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
manage = pkgs.writeScriptBin "manage" ''
|
manage = pkgs.writeScriptBin "manage" ''
|
||||||
exec ${pkgs.lib.getExe pkgs.python3} ${toString ./src/manage.py} $@
|
exec ${pkgs.lib.getExe pkgs.python3} ${toString ./src/manage.py} $@
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
# re-export inputs so they can be overridden granularly
|
{
|
||||||
# (they can't be accessed from the outside any other way)
|
|
||||||
args
|
|
||||||
// {
|
|
||||||
shell = pkgs.mkShellNoCC {
|
shell = pkgs.mkShellNoCC {
|
||||||
inputsFrom = [ (pkgs.callPackage ./nix/package.nix { }) ];
|
inputsFrom = [ (pkgs.callPackage ./nix/package.nix { }) ];
|
||||||
packages = [
|
packages = [
|
||||||
|
@ -39,7 +36,12 @@ args
|
||||||
|
|
||||||
module = import ./nix/configuration.nix;
|
module = import ./nix/configuration.nix;
|
||||||
tests = pkgs.callPackage ./nix/tests.nix { };
|
tests = pkgs.callPackage ./nix/tests.nix { };
|
||||||
|
|
||||||
|
# re-export inputs so they can be overridden granularly
|
||||||
|
# (they can't be accessed from the outside any other way)
|
||||||
|
inherit
|
||||||
|
sources
|
||||||
|
system
|
||||||
|
pkgs
|
||||||
|
;
|
||||||
}
|
}
|
||||||
# re-export inputs so they can be overridden granularly
|
|
||||||
# (they can't be accessed from the outside any other way)
|
|
||||||
// args
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue