Skip to content

Commit

Permalink
feat: infer crate version from Cargo.toml
Browse files Browse the repository at this point in the history
We should never have to update flake.nix on release ever again!
  • Loading branch information
cfcosta committed Jul 24, 2023
1 parent 6bcaa29 commit b390fbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@

deno = nixpkgs.legacyPackages.${system}.deno;

cargoTomlContents = builtins.readFile ./crates/aiken/Cargo.toml;
version = (builtins.fromTOML cargoTomlContents).package.version;

aiken = pkgs.rustPlatform.buildRustPackage {
inherit version;

name = "aiken";
version = "1.0.13-alpha";

buildInputs = with pkgs; [ openssl ] ++ osxDependencies;
nativeBuildInputs = with pkgs; [ pkg-config openssl.dev ];
Expand Down

0 comments on commit b390fbf

Please sign in to comment.