forked from fediversity/fediversity
refactor shell re-export
This commit is contained in:
parent
f8ac63853c
commit
7d8a0b3ab5
1 changed files with 5 additions and 10 deletions
|
|
@ -6,14 +6,17 @@
|
|||
config = { };
|
||||
overlays = [ (import ./nix/overlay.nix) ];
|
||||
},
|
||||
}:
|
||||
}@args:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
manage = pkgs.writeScriptBin "manage" ''
|
||||
exec ${pkgs.lib.getExe pkgs.python3} ${toString ./src/manage.py} $@
|
||||
'';
|
||||
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 {
|
||||
inputsFrom = [ (pkgs.callPackage ./nix/package.nix { }) ];
|
||||
packages = [
|
||||
|
|
@ -39,12 +42,4 @@ in
|
|||
|
||||
module = import ./nix/configuration.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
|
||||
;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue