Unverified Commit 0654f81d authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

compress-drv: carry pname, version forward

This is required to overwrite to use a compressed version of nextcloud in services.nextcloud.package because the module accesses version
parent 4cc5dee0
Loading
Loading
Loading
Loading
+15 −10
Original line number Diff line number Diff line
@@ -76,7 +76,12 @@ let
    '';
  formatsPipe = lib.concatStringsSep "|" formats;
in
runCommand "${drv.name}-compressed" { } ''
runCommand "${drv.name}-compressed"
  (
    (lib.optionalAttrs (drv ? pname) { inherit (drv) pname; })
    // (lib.optionalAttrs (drv ? version) { inherit (drv) version; })
  )
  ''
    mkdir $out

    # cannot use lndir here, because it also symlinks directories,