Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
atagen
c53377a504 satisfy nixpkgs pedantry 2026-01-29 16:20:21 +11:00

View file

@ -12,36 +12,44 @@
}:
let
forAllSystems =
func: nixpkgs.lib.genAttrs (import systems) (system: func (import nixpkgs { inherit system; }));
func:
nixpkgs.lib.genAttrs (import systems) (system: func (import nixpkgs { inherit system; }) system);
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
cargo
rustc
rust-analyzer
rustfmt
clippy
];
};
});
packages = forAllSystems (pkgs: {
default = self.packages.${pkgs.system}.yoke;
yoke = pkgs.rustPlatform.callPackage ./nix/package.nix {
features = [
"cli"
];
};
yoke-lite = pkgs.rustPlatform.callPackage ./nix/package.nix { };
});
devShells = forAllSystems (
pkgs: sys: {
default = pkgs.mkShell {
packages = with pkgs; [
cargo
rustc
rust-analyzer
rustfmt
clippy
];
};
}
);
packages = forAllSystems (
pkgs: sys: {
default = self.packages.${pkgs.system}.yoke;
yoke = pkgs.rustPlatform.callPackage ./nix/package.nix {
features = [
"cli"
];
};
yoke-lite = pkgs.rustPlatform.callPackage ./nix/package.nix { };
}
);
nixosModules.default =
{ pkgs, lib, ... }:
let
sys = pkgs.stdenv.hostPlatform.system;
in
{
config = {
imports = [ ./nix/module.nix ];
wrapperPkg = self.packages.${pkgs.system}.yoke-lite;
environment.systemPackages = [ self.packages.${pkgs.system}.yoke ];
wrapperPkg = self.packages.${sys}.yoke-lite;
environment.systemPackages = [ self.packages.${sys}.yoke ];
};
};
};