- squashfsTools = hostPkgs.squashfsTools.overrideAttrs (old: {
- # We patch in support for squashfs labels because
- # https://github.com/NixOS/nixpkgs/pull/236656 requires filesystems to have labels and
- # https://github.com/plougher/squashfs-tools/issues/59 squashfs doesn't support labels
- patches = (old.patches or []) ++ [ ./squashfs-tools-label.patch ];
- buildInputs = (old.buildInputs or []) ++ [ hostPkgs.makeWrapper ];
- postInstall = (old.postInstall or "") + ''
- wrapProgram "$out/bin/mksquashfs" \
- --append-flags "-label nix-store"
- '';
- });
+ squashfsTools =
+ (hostPkgs.extend (import ../overlays/squashfs-labels)).squashfsTools.overrideAttrs
+ (old: {
+ buildInputs = (old.buildInputs or [ ]) ++ [ hostPkgs.makeWrapper ];
+ postInstall = (old.postInstall or "") + ''
+ wrapProgram "$out/bin/mksquashfs" \
+ --append-flags "-label nix-store"
+ '';
+ });