chore: update flakes

This commit is contained in:
iff 2024-12-11 17:34:15 +01:00
parent 0e82b6aee5
commit 657deb44f3

View file

@ -3,7 +3,8 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
outputs =
{ self, nixpkgs }:
let
inherit (nixpkgs.lib)
genAttrs
@ -13,19 +14,20 @@
sourceByRegex
;
eachSystem = f: genAttrs
[
eachSystem =
f:
genAttrs [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
]
(system: f nixpkgs.legacyPackages.${system});
] (system: f nixpkgs.legacyPackages.${system});
in
{
formatter = eachSystem (pkgs: pkgs.nixpkgs-fmt);
formatter = eachSystem (pkgs: pkgs.nixfmt-rfc-style);
packages = eachSystem (pkgs:
packages = eachSystem (
pkgs:
let
src = sourceByRegex self [
"(core)(/.*)?"
@ -42,8 +44,7 @@
;
in
{
default =
rustPlatform.buildRustPackage {
default = rustPlatform.buildRustPackage {
pname = "pay-respects";
inherit ((importTOML (src + "/core/Cargo.toml")).package) version;
@ -64,6 +65,7 @@
mainProgram = "pay-respects";
};
};
});
}
);
};
}