Skip to content

Commit

Permalink
ci: correct nix path expressions (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Cyril Matthey-Doret <[email protected]>
  • Loading branch information
gabyx and cmdoret authored Dec 17, 2024
1 parent 942ccef commit a754e16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tools/nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@
};

outputs = {
self,
nixpkgs,
flake-utils,
rust-overlay,
...
}: let
# This is string (without toString it would be a `path` which is put into the store)
rootDir = toString ./. + "../../..";
lib = nixpkgs.lib;
rootDir = ./../..;
in
flake-utils.lib.eachDefaultSystem
# Creates an attribute map `{ devShells.<system>.default = ...}`
Expand All @@ -53,7 +54,6 @@

# Import nixpkgs and load it into pkgs.
# Overlay the rust toolchain
lib = nixpkgs.lib;
pkgs = import nixpkgs {
inherit system overlays;
};
Expand Down
6 changes: 3 additions & 3 deletions tools/nix/pkgs/tripsu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
rustc = rustToolchain;
};

cargoFile = /. + rootDir + "/Cargo.toml";
lockFile = /. + rootDir + "/Cargo.lock";
cargoFile = rootDir + "/Cargo.toml";
lockFile = rootDir + "/Cargo.lock";
in
rustPlatform.buildRustPackage {
name = "tripsu";
src = /. + rootDir;
src = rootDir;

version = (lib.importTOML cargoFile).package.version;

Expand Down

0 comments on commit a754e16

Please sign in to comment.