docker-nixpkgs/shell.nix
Sefa Eyeoglu 1d40cd2059
Generate multi-arch image manifests
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-03-07 21:42:03 +01:00

20 lines
374 B
Nix

let
nixpkgs = builtins.fetchTarball "channel:nixos-23.11";
pkgs = import nixpkgs { config = { }; overlays = [ ]; };
in
with pkgs;
mkShell {
buildInputs = [
dive
jq
skopeo
podman
] ++ lib.optional (pkgs ? mdsh) pkgs.mdsh;
shellHook = ''
# try to work aroud build issues
unset TMPDIR
export NIX_PATH=nixpkgs=${toString nixpkgs}
'';
}