Compare commits
No commits in common. "76c0b03e4959d7ba8ea5b54c71de2229b41b785f" and "8bf3fdae1c8faa6095edeb8807f3b6bd7955e7c4" have entirely different histories.
76c0b03e49
...
8bf3fdae1c
|
@ -54,6 +54,7 @@ in
|
||||||
"bbedit"
|
"bbedit"
|
||||||
# "discord"
|
# "discord"
|
||||||
# "element"
|
# "element"
|
||||||
|
"ferdium"
|
||||||
"firefox"
|
"firefox"
|
||||||
"jitsi-meet"
|
"jitsi-meet"
|
||||||
"knockknock"
|
"knockknock"
|
||||||
|
@ -62,13 +63,10 @@ in
|
||||||
"logi-options-plus"
|
"logi-options-plus"
|
||||||
"lulu"
|
"lulu"
|
||||||
"macsvg"
|
"macsvg"
|
||||||
"messenger"
|
|
||||||
"miniforge"
|
"miniforge"
|
||||||
"mullvadvpn"
|
"mullvadvpn"
|
||||||
# "obsidian"
|
# "obsidian"
|
||||||
"qflipper"
|
|
||||||
"rectangle"
|
"rectangle"
|
||||||
"remarkable"
|
|
||||||
"secretive"
|
"secretive"
|
||||||
"shortcat"
|
"shortcat"
|
||||||
"signal"
|
"signal"
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
let
|
{
|
||||||
mkTemplates = builtins.mapAttrs (name: attrs: attrs // { path = ./. + "/${name}"; });
|
|
||||||
in
|
|
||||||
mkTemplates {
|
|
||||||
rust = {
|
rust = {
|
||||||
description = "A rust flake template based on flake.parts";
|
description = "A rust flake template based on flake.parts";
|
||||||
welcomeText = ''
|
welcomeText = ''
|
||||||
|
@ -9,5 +6,6 @@ mkTemplates {
|
||||||
|
|
||||||
run `direnv allow` and `cargo init` to start a new project
|
run `direnv allow` and `cargo init` to start a new project
|
||||||
'';
|
'';
|
||||||
|
path = ./templates/rust;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
pre-commit.inputs.nixpkgs.follows = "nixpkgs";
|
pre-commit.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, flake-parts, crane, pre-commit, ... }:
|
outputs = { self, flake-parts, crane, pre-commit, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit self; } {
|
||||||
imports = [ pre-commit.flakeModule ];
|
imports = [ pre-commit.flakeModule ];
|
||||||
systems = [
|
systems = [
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
crane-lib = crane.lib.${system};
|
crane-lib = crane.lib.${system};
|
||||||
package = crane-lib.buildPackage {
|
package = crane-lib.buildPackage {
|
||||||
src = crane-lib.cleanCargoSource ./.;
|
src = crane-lib.cleanCargoSource ./.;
|
||||||
nativeBuildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [ pkgs.libiconv ];
|
nativeBuildInputs = [ pkgs.libiconv ];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -43,19 +43,15 @@
|
||||||
inputsFrom = builtins.attrValues self.checks;
|
inputsFrom = builtins.attrValues self.checks;
|
||||||
|
|
||||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||||
nativeBuildInputs = builtins.attrValues {
|
nativeBuildInputs = with pkgs; [
|
||||||
inherit (pkgs)
|
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
;
|
];
|
||||||
};
|
buildInputs = with pkgs; [
|
||||||
buildInputs = builtins.attrValues {
|
|
||||||
inherit (pkgs)
|
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
rustfmt
|
rustfmt
|
||||||
clippy
|
clippy
|
||||||
;
|
];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue