mirror of
https://git.suyu.dev/suyu/nix-flake
synced 2024-11-21 06:26:02 -07:00
reworked flake to allow for more platforms
It should work on aarch64 now. However I do not own such machine so it is untested.
This commit is contained in:
parent
87a3dc781b
commit
4253231a93
2 changed files with 35 additions and 8 deletions
18
flake.lock
18
flake.lock
|
@ -18,7 +18,23 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"systems": "systems"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1689347949,
|
||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default-linux",
|
||||
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default-linux",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
25
flake.nix
25
flake.nix
|
@ -3,21 +3,32 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
# todo: get a mac
|
||||
# todo: wait for suyu to get good on MacOS
|
||||
systems.url = "github:nix-systems/default-linux";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
packages.x86_64-linux =
|
||||
outputs = { self, nixpkgs, systems, ... }:
|
||||
let
|
||||
eachSystem = nixpkgs.lib.genAttrs (import systems);
|
||||
in
|
||||
{
|
||||
packages = eachSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
config = {allowUnfree = true;};
|
||||
system = "${system}";
|
||||
config = {allowUnfree = true;}; # cuda
|
||||
};
|
||||
suyu-deps = pkgs.kdePackages // {inherit (self.packages.x86_64-linux) nx_tzdb compat-list;};
|
||||
|
||||
# Qt6 packages have been moved to kdePackages so we grab them all here so they are not
|
||||
# confused with their Qt5 counterparts
|
||||
suyu-deps = pkgs.kdePackages // {inherit (self.packages.${system}) nx_tzdb compat-list;};
|
||||
in {
|
||||
default = self.packages.x86_64-linux.suyu;
|
||||
default = self.packages.${system}.suyu;
|
||||
nx_tzdb = pkgs.callPackage ./suyu/nx_tzdb.nix {};
|
||||
compat-list = pkgs.callPackage ./suyu/compat-list.nix {};
|
||||
suyu = pkgs.callPackage ./suyu/suyu.nix suyu-deps;
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue