Skip to content

Commit

Permalink
chore: fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Oct 30, 2023
1 parent c74b48c commit 1a1f61c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nix/std/cells/julia2nix/devshells/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ l.mapAttrs (_: std.lib.dev.mkShell) {
env = [
{
name = "NIX_PATH";
value = "nixpkgs=${nixpkgs.path}";
value = "nixpkgs=${inputs.nixpkgs-lock.outPath}";
}
];
};
Expand Down
6 changes: 2 additions & 4 deletions nix/std/cells/julia2nix/packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ in
inherit src;
name = "julia-wrapped-julia2nix";
package = cell.lib.julia-wrapped {
extraInstallPhase = ''
export nixpkgs-prefetch=${inputs.nixpkgs-lock.outPath}"
'';
makeWrapperArgs = [ "--set NIX_PATH nixpkgs=${inputs.nixpkgs-lock.outPath}" ];
extraBuildInputs = with inputs.nixpkgs; [
alejandra
nixUnstable
Expand All @@ -113,7 +111,7 @@ in
name = "julia2nix-write-all-systems";
runtimeInputs = [ cell.packages.build-project ];
text = ''
export NIX_PATH=${inputs.main.inputs.nixpkgs-lock.outPath}
export NIX_PATH=${inputs.nixpkgs-lock.outPath}
julia ${std.incl self [ "testenv" ]}/testenv/writejulia2nix.jl
'';
};
Expand Down
2 changes: 1 addition & 1 deletion src/JuNix/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Prefetch sha256 with `nix-prefetch`
function fetch_sha256(fetcher::Fetcher, opts::Options)
parsed = parse_fetcher(fetcher, opts)
expr = """
let pkgs = import "/nix/store/cwr7p465zbfp60hg3jng1cfkmq14ka49-source" { };
let pkgs = import <nixpkgs> { };
in with pkgs; $(fetcher.name)
"""
cmd = `nix-prefetch $expr $(parsed)`
Expand Down

0 comments on commit 1a1f61c

Please sign in to comment.