Skip to content

Commit ee10670

Browse files
committed
Remove unnecessary passing around of sources
1 parent dd0b0b6 commit ee10670

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

nix/overlay.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Overlay for Nixpkgs which holds all opsqueue related packages.
22
final: prev:
33
let
4-
sources = import ./sources.nix;
5-
pythonOverlay = import ./python-overlay.nix { inherit sources; };
4+
pythonOverlay = import ./python-overlay.nix;
65
in
76
{
8-
# Placing the sources in the overlay gives all packages access to the sources,
9-
# and it makes it possible to override them in new overlays.
10-
sources = if prev ? sources then prev.sources // sources else sources;
11-
127
opsqueue = final.callPackage ../opsqueue/opsqueue.nix { };
138

149
# The explicit choice is made not to override `python312`, as this will cause a rebuild of many

nix/python-overlay.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
{
2-
sources ? import ./sources.nix,
3-
}:
41
final: prev: {
52
opsqueue_python = final.callPackage ../libs/opsqueue_python/opsqueue_python.nix { };
63
}

0 commit comments

Comments
 (0)