We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8d6d90 commit 09accb1Copy full SHA for 09accb1
src/opam.nix
@@ -404,7 +404,12 @@ in rec {
404
// {
405
inherit url;
406
};
407
- repo = filterOpamRepo { ${name} = null; } (makeOpamRepo path);
+ repo = (filterOpamRepo { ${name} = null; } (makeOpamRepo path)).overrideAttrs (oa: {
408
+ # Move the package to the proper version
409
+ buildCommand = oa.buildCommand + ''
410
+ mv "packages/${name}/$(ls "packages/${name}" | head -1)" "packages/${name}/${name}.${version}"
411
+ '';
412
+ });
413
in if !hasRev && !isImpure then
414
lib.warn
415
"pin-depends without an explicit sha1 is not supported in pure evaluation mode; try with --impure"
0 commit comments