Compare commits

..

5 commits

Author SHA1 Message Date
c51da5dacf
make checks build needed software 2024-06-17 10:06:58 -05:00
c825262a72
flake.lock: Update
Flake lock file updates:

• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=b15be9c77de593581007de53b2bbca97d121900a' (2024-06-16)
  → 'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=a9c7a0830fd9a8b9fc4065f1cd654efd1326691a' (2024-06-17)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3f84a279f1a6290ce154c5531378acc827836fbb' (2024-06-13)
  → 'github:nixos/nixpkgs/e6cea36f83499eb4e9cd184c8a8e823296b50ad5' (2024-06-15)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/937cdd5ba09099b20d665cba048959f505fd0880' (2024-06-16)
  → 'github:nix-community/nixpkgs-wayland/4a3b27cc9526208686896d0ef01c7bb67a47b91f' (2024-06-17)
• Updated input 'stable':
    'github:nixos/nixpkgs/5c2ec3a5c2ee9909904f860dadc19bc12cd9cc44' (2024-06-12)
  → 'github:nixos/nixpkgs/842253bf992c3a7157b67600c2857193f126563a' (2024-06-15)
• Updated input 'zig2nix':
    'github:Cloudef/zig2nix/59549938d6f2651b4d5cb1582a6589f60c147bff' (2024-06-16)
  → 'github:Cloudef/zig2nix/26b1364329ffb4c910da43c53f6be27b140723de' (2024-06-17)
2024-06-17 09:50:42 -05:00
63f744752c
update checks attr 2024-06-17 09:50:12 -05:00
9b9c710f4b
only need roc-full 2024-06-17 09:49:31 -05:00
97084f9c08
refactor oizysFlake 2024-06-17 09:48:54 -05:00
5 changed files with 62 additions and 72 deletions

View file

@ -38,4 +38,4 @@ jobs:
- name: Build - name: Build
run: | run: |
cachix watch-exec daylin -- nix build --accept-flake-config '.#checks.x86_64-linux.packageCheck' cachix watch-exec daylin -- nix build --accept-flake-config '.#checks.x86_64-linux.makePackages'

View file

@ -305,11 +305,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1718566457, "lastModified": 1718633685,
"narHash": "sha256-FtgnoGecYVBnGelxdcgavpogPVn+zi/5p4JFJM+9VJk=", "narHash": "sha256-dAuZ6mIIVQraN1PnCe12Qwdcs/Nvfe/zfSy45ED5aso=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "b15be9c77de593581007de53b2bbca97d121900a", "rev": "a9c7a0830fd9a8b9fc4065f1cd654efd1326691a",
"revCount": 4851, "revCount": 4856,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland/" "url": "https://github.com/hyprwm/Hyprland/"
@ -682,11 +682,11 @@
"nixpkgs": "nixpkgs_8" "nixpkgs": "nixpkgs_8"
}, },
"locked": { "locked": {
"lastModified": 1718541015, "lastModified": 1718630464,
"narHash": "sha256-Hh5FRnI0WgDmSgs0Xky2VKtSDibcWOOEA1T79/tIer0=", "narHash": "sha256-GXuN6MmzNomxT9VOEFu4iwP1kRTJ7F3/HdOzeDGPE1c=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs-wayland", "repo": "nixpkgs-wayland",
"rev": "937cdd5ba09099b20d665cba048959f505fd0880", "rev": "4a3b27cc9526208686896d0ef01c7bb67a47b91f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -761,11 +761,11 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1718276985, "lastModified": 1718428119,
"narHash": "sha256-u1fA0DYQYdeG+5kDm1bOoGcHtX0rtC7qs2YA2N1X++I=", "narHash": "sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3f84a279f1a6290ce154c5531378acc827836fbb", "rev": "e6cea36f83499eb4e9cd184c8a8e823296b50ad5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -930,11 +930,11 @@
}, },
"stable": { "stable": {
"locked": { "locked": {
"lastModified": 1718229064, "lastModified": 1718447546,
"narHash": "sha256-ZFav8A9zPNfjZg/wrxh1uZeMJHELRfRgFP+meq01XYk=", "narHash": "sha256-JHuXsrC9pr4kA4n7LuuPfWFJUVlDBVJ1TXDVpHEuUgM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5c2ec3a5c2ee9909904f860dadc19bc12cd9cc44", "rev": "842253bf992c3a7157b67600c2857193f126563a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1169,11 +1169,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1718500719, "lastModified": 1718624172,
"narHash": "sha256-lPaOrzQe8xVMha9IEQSVkPYVZmrZIl7pvTymERM3sAQ=", "narHash": "sha256-ZWrhjpNX6WSdjnSV8/JTaSLLqY4VqRp9ql16DldcGYk=",
"owner": "Cloudef", "owner": "Cloudef",
"repo": "zig2nix", "repo": "zig2nix",
"rev": "59549938d6f2651b4d5cb1582a6589f60c147bff", "rev": "26b1364329ffb4c910da43c53f6be27b140723de",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,6 +1,15 @@
{ inputs, pkgs }: { inputs, system }:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.lix-module.overlays.default
inputs.hyprland-contrib.overlays.default
inputs.nixpkgs-wayland.overlay
];
};
in
{ {
makePackages = makePackages =
pkgs.runCommandLocal "build-third-party" pkgs.runCommandLocal "build-third-party"
{ {
@ -8,12 +17,13 @@
nativeBuildInputs = [ nativeBuildInputs = [
pkgs.pixi pkgs.pixi
pkgs.swww pkgs.swww
pkgs.xdg-desktop-portal-hyprland
pkgs.nixVersions.stable
inputs.tsm.packages.${pkgs.system}.default inputs.tsm.packages.${pkgs.system}.default
inputs.hyprman.packages.${pkgs.system}.default inputs.hyprman.packages.${pkgs.system}.default
inputs.roc.packages.${pkgs.system}.full inputs.roc.packages.${pkgs.system}.full # cli + lang_server
inputs.roc.packages.${pkgs.system}.lang-server
inputs.zls.outputs.packages.${pkgs.system}.default inputs.zls.outputs.packages.${pkgs.system}.default
inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin

View file

@ -22,10 +22,8 @@ let
inherit (import ./find-modules.nix { inherit lib; }) findModulesList; inherit (import ./find-modules.nix { inherit lib; }) findModulesList;
#supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; #supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
supportedSystems = [ "x86_64-linux" ]; supportedSystems = [ "x86_64-linux" ];
in
rec {
forAllSystems = f: genAttrs supportedSystems (system: f (import nixpkgs { inherit system; })); forAllSystems = f: genAttrs supportedSystems (system: f (import nixpkgs { inherit system; }));
oizysModules = listToAttrs (findModulesList ../modules);
mkSystem = mkSystem =
hostName: hostName:
@ -36,7 +34,6 @@ rec {
../overlays ../overlays
inputs.lix-module.nixosModules.default inputs.lix-module.nixosModules.default
] ++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostName}")); ] ++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostName}"));
specialArgs = { specialArgs = {
inherit inherit
inputs inputs
@ -50,51 +47,35 @@ rec {
}; };
}; };
oizysHosts = mapAttrs (name: _: mkSystem name) (readDir ../hosts); in
oizysPkg = forAllSystems (pkgs: rec { {
oizys-zig = pkgs.callPackage ../pkgs/oizys/oizys-zig { inherit zig2nix; };
oizys-nim = pkgs.callPackage ../pkgs/oizys/oizys-nim { };
oizys-rs = pkgs.callPackage ../pkgs/oizys/oizys-rs { };
oizys-go = pkgs.callPackage ../pkgs/oizys/oizys-go { };
default = oizys-go;
});
oizysShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
git
deadnix
];
};
});
oizysChecks = forAllSystems (pkgs: import ./checks.nix { inherit pkgs inputs; });
oizysFormatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
oizysFlake = { oizysFlake = {
nixosModules = oizysModules; nixosModules = listToAttrs (findModulesList ../modules);
nixosConfigurations = oizysHosts; nixosConfigurations = mapAttrs (name: _: mkSystem name) (readDir ../hosts);
packages = oizysPkg; packages = forAllSystems (pkgs: rec {
devShells = oizysShells; oizys-zig = pkgs.callPackage ../pkgs/oizys/oizys-zig { inherit zig2nix; };
formatter = oizysFormatter; oizys-nim = pkgs.callPackage ../pkgs/oizys/oizys-nim { };
checks = oizysChecks; oizys-rs = pkgs.callPackage ../pkgs/oizys/oizys-rs { };
# checks = forAllSystems (pkgs: { oizys-go = pkgs.callPackage ../pkgs/oizys/oizys-go { };
# packageCheck = mkPackageCheck { default = oizys-go;
# inherit pkgs; });
# # make sure lix is in this? devShells = forAllSystems (pkgs: {
# packages = [ default = pkgs.mkShell {
# pkgs.pixi packages = with pkgs; [
# pkgs.swww git
# deadnix
# inputs.tsm.packages.${pkgs.system}.default ];
# inputs.hyprman.packages.${pkgs.system}.default };
# });
# inputs.roc.packages.${pkgs.system}.full checks = forAllSystems (
# inputs.roc.packages.${pkgs.system}.lang-server pkgs:
# import ./checks.nix {
# inputs.zls.outputs.packages.${pkgs.system}.default inherit inputs;
# inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin system = pkgs.system;
# ]; }
# );
# }; formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
# });
}; };
} }

View file

@ -13,8 +13,7 @@ in
{ {
config = mkIfIn "roc" cfg { config = mkIfIn "roc" cfg {
environment.systemPackages = with rocPkgs; [ environment.systemPackages = with rocPkgs; [
full full # cli + lang_server
lang-server
]; ];
}; };
} }