This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
52 lines (46 loc) · 1.59 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
inputs.expidus.url = "github:ExpidusOS/expidus";
outputs = {
self,
expidus,
...
}@inputs:
expidus.lib.mkFlake {
overlay = final: prev: {
expidus = prev.expidus // {
genesis-shell = prev.flutter.buildFlutterApplication {
version = "0-unstable-git+${self.shortRev or "dirty"}";
src = prev.lib.cleanSource self;
pubspecLock = prev.lib.importJSON ./pubspec.lock.json;
gitHashes = {
libtokyo = "sha256-ei3bgEdmmWz0iwMUBzBndYPlvNiCrDBrG33/n8PrBPI=";
libtokyo_flutter = "sha256-ei3bgEdmmWz0iwMUBzBndYPlvNiCrDBrG33/n8PrBPI=";
};
inherit (prev.expidus.genesis-shell) pname buildInputs postInstall meta;
};
};
};
mkShells = self:
let
inherit (self.legacyPackages) lib;
mkShell = pkgs: pkg: pkgs.mkShell {
inherit (pkg) pname version name;
inputsFrom = [ pkg ];
packages = with pkgs; [
flutter yq cage
wayland-utils
mesa-demos
];
};
in {
default = mkShell self.legacyPackages self.packages.default;
} // lib.optionalAttrs (self.legacyPackages.isAsahi) {
asahi = mkShell self.legacyPackages.pkgsAsahi self.packages.asahi;
};
mkPackages = self: {
default = self.legacyPackages.expidus.genesis-shell;
} // self.legacyPackages.lib.optionalAttrs (self.legacyPackages.isAsahi) {
asahi = self.legacyPackages.pkgsAsahi.expidus.genesis-shell;
};
};
}