Skip to content

Commit

Permalink
Add .envrc for direnv magic (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrsturgeon authored Nov 16, 2023
2 parents 519b864 + e9a854f commit 25a9418
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 32 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake .
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
**/target/
**/result
**/examples/**/Cargo.lock
**/autogen.rs
**/.direnv/
2 changes: 0 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ fi
set -u

# Update our workbench
rustup self update || :
rustup update || :
rustup toolchain install nightly || :
rustup component add clippy miri rustfmt
git submodule update --init --recursive --remote
Expand Down
31 changes: 20 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 5 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
{
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
fenix.url = "github:nix-community/fenix";
flake-utils.url = "github:numtide/flake-utils";
naersk = {
url = "github:nix-community/naersk";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
naersk.url = "github:nix-community/naersk";
};
outputs = { fenix, flake-utils, naersk, nixpkgs, self }:
outputs = { fenix, flake-utils, naersk, self }:
flake-utils.lib.eachDefaultSystem (system:
let
name = "inator";
# pkgs = (import nixpkgs) { inherit system; };
# naersk' = pkgs.callPackage naersk { };
naersk' = (naersk.lib.${system}.override {
naersk' = naersk.lib.${system}.override {
cargo = toolchain;
rustc = toolchain;
});
};
settings = {
# cargoBuildOptions = orig: orig ++ [ "--examples" ];
# doCheck = true;
doDocFail = true;
gitAllRefs = true;
gitSubmodules = true;
pname = "${name}";
src = ./.;
};
Expand Down

0 comments on commit 25a9418

Please sign in to comment.