File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ l.mapAttrs (_: std.lib.dev.mkShell) {
64
64
env = [
65
65
{
66
66
name = "NIX_PATH" ;
67
- value = "nixpkgs=${ nixpkgs . path } " ;
67
+ value = "nixpkgs=${ inputs . nixpkgs-lock . outPath } " ;
68
68
}
69
69
] ;
70
70
} ;
Original file line number Diff line number Diff line change 87
87
inherit src ;
88
88
name = "julia-wrapped-julia2nix" ;
89
89
package = cell . lib . julia-wrapped {
90
- extraInstallPhase = ''
91
- export nixpkgs-prefetch=${ inputs . nixpkgs-lock . outPath } "
92
- '' ;
90
+ makeWrapperArgs = [ "--set NIX_PATH nixpkgs=${ inputs . nixpkgs-lock . outPath } " ] ;
93
91
extraBuildInputs = with inputs . nixpkgs ; [
94
92
alejandra
95
93
nixUnstable
113
111
name = "julia2nix-write-all-systems" ;
114
112
runtimeInputs = [ cell . packages . build-project ] ;
115
113
text = ''
116
- export NIX_PATH=${ inputs . main . inputs . nixpkgs-lock . outPath }
114
+ export NIX_PATH=${ inputs . nixpkgs-lock . outPath }
117
115
julia ${ std . incl self [ "testenv" ] } /testenv/writejulia2nix.jl
118
116
'' ;
119
117
} ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Prefetch sha256 with `nix-prefetch`
64
64
function fetch_sha256 (fetcher:: Fetcher , opts:: Options )
65
65
parsed = parse_fetcher (fetcher, opts)
66
66
expr = """
67
- let pkgs = import "/nix/store/cwr7p465zbfp60hg3jng1cfkmq14ka49-source" { };
67
+ let pkgs = import <nixpkgs> { };
68
68
in with pkgs; $(fetcher. name)
69
69
"""
70
70
cmd = ` nix-prefetch $expr $(parsed) `
You can’t perform that action at this time.
0 commit comments