@@ -13,7 +13,6 @@ import (
13
13
"go.jetpack.io/devbox/internal/debug"
14
14
"go.jetpack.io/devbox/internal/redact"
15
15
"go.jetpack.io/devbox/nix"
16
- "go.jetpack.io/devbox/nix/flake"
17
16
"golang.org/x/exp/maps"
18
17
)
19
18
@@ -29,20 +28,8 @@ func StorePathFromHashPart(ctx context.Context, hash, storeAddr string) (string,
29
28
func StorePathsFromInstallable (ctx context.Context , installable string , allowInsecure bool ) ([]string , error ) {
30
29
defer debug .FunctionTimer ().End ()
31
30
32
- // Some older versions of Nix have a bug where specifying a narHash
33
- // without a lastModifiedDate query parameter results in an error. I'm
34
- // not sure when it was fixed, but I know it works in 2.25+.
35
- if ! nix .AtLeast (nix .Version2_25 ) {
36
- parsed , err := flake .ParseInstallable (installable )
37
- if err == nil {
38
- parsed .Ref .NARHash = ""
39
- parsed .Ref .LastModified = 0
40
- installable = parsed .String ()
41
- }
42
- }
43
-
44
31
// --impure for NIXPKGS_ALLOW_UNFREE
45
- cmd := command ("path-info" , installable , "--json" , "--impure" )
32
+ cmd := command ("path-info" , fixInstallableArg ( installable ) , "--json" , "--impure" )
46
33
cmd .Env = allowUnfreeEnv (os .Environ ())
47
34
48
35
if allowInsecure {
0 commit comments