mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20: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";
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue