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