Skip to content

Commit 5ee0799

Browse files
committed
nix: separate overlay with deps
1 parent 848c858 commit 5ee0799

2 files changed

Lines changed: 17 additions & 15 deletions

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
system:
7272
import nixpkgs {
7373
localSystem.system = system;
74-
overlays = with self.overlays; [ default ];
74+
overlays = with self.overlays; [ hyprlauncher-with-deps ];
7575
}
7676
);
7777
in

nix/overlays.nix

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,28 @@ in
1717
{
1818
default = inputs.self.overlays.hyprlauncher;
1919

20-
hyprlauncher = lib.composeManyExtensions [
20+
hyprlauncher-with-deps = lib.composeManyExtensions [
2121
inputs.hyprwire.overlays.default
2222
inputs.hyprlang.overlays.default
2323
inputs.hyprutils.overlays.default
2424
inputs.hyprtoolkit.overlays.default
2525
inputs.aquamarine.overlays.default
2626
inputs.hyprgraphics.overlays.default
2727
inputs.hyprwayland-scanner.overlays.default
28-
(final: prev: {
29-
hyprlauncher = prev.callPackage ./default.nix {
30-
stdenv = prev.gcc15Stdenv;
31-
version =
32-
version
33-
+ "+date="
34-
+ (mkDate (inputs.self.lastModifiedDate or "19700101"))
35-
+ "_"
36-
+ (inputs.self.shortRev or "dirty");
37-
inherit (final) hyprlang;
38-
shortRev = self.sourceInfo.shortRev or "dirty";
39-
};
40-
})
28+
self.overlays.hyprlauncher
29+
4130
];
31+
32+
hyprlauncher = final: prev: {
33+
hyprlauncher = prev.callPackage ./default.nix {
34+
stdenv = prev.gcc15Stdenv;
35+
version =
36+
version
37+
+ "+date="
38+
+ (mkDate (inputs.self.lastModifiedDate or "19700101"))
39+
+ "_"
40+
+ (inputs.self.shortRev or "dirty");
41+
shortRev = self.sourceInfo.shortRev or "dirty";
42+
};
43+
};
4244
}

0 commit comments

Comments
 (0)