mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
chore: update flakes
This commit is contained in:
parent
0e82b6aee5
commit
657deb44f3
1 changed files with 61 additions and 59 deletions
22
flake.nix
22
flake.nix
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue