Skip to content

Commit

Permalink
Fix flake builder -- again (#114)
Browse files Browse the repository at this point in the history
* Update rust compiler version

* Adding fenix

* Fix errors?

* Ditching fenix

* Roll back the compiler upgrade

* Bump the version

---------

Co-authored-by: Colt Frederickson <[email protected]>
  • Loading branch information
zmre and coltfred authored Sep 10, 2024
1 parent 4c9d609 commit 8df8447
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 42 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ironhide"
version = "1.0.8"
version = "1.0.9"
authors = ["IronCore Labs <[email protected]>"]
categories = ["cryptography"]
description = "Tool to easily encrypt and decrypt files to users and groups. Similar to GPG, but usable at scale."
Expand Down
56 changes: 29 additions & 27 deletions flake.lock

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

31 changes: 18 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
nixpkgs,
rust-overlay,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
overlays = [(import rust-overlay)];
Expand All @@ -23,25 +22,31 @@
in rec {
# `nix build`
packages = {
ironhide = pkgs.rustPlatform.buildRustPackage {
pname = cargoToml.package.name;
version = cargoToml.package.version;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with pkgs;
[rusttoolchain]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin
(with pkgs.darwin.apple_sdk.frameworks; [Security SystemConfiguration]);
};
ironhide =
(pkgs.makeRustPlatform {
cargo = rusttoolchain;
rustc = rusttoolchain;
})
.buildRustPackage {
# ironhide = pkgs.rustPlatform.buildRustPackage {
pname = cargoToml.package.name;
inherit (cargoToml.package) version;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with pkgs;
[rusttoolchain]
++ lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [Security SystemConfiguration]);
};
default = packages.ironhide;
};

# nix develop
devShells.default = pkgs.mkShell {
buildInputs = with pkgs;
[rusttoolchain]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin
(with pkgs.darwin.apple_sdk.frameworks; [Security SystemConfiguration]);
++ lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [Security SystemConfiguration]);
};
});
}

0 comments on commit 8df8447

Please sign in to comment.