base-images/flake.nix

61 lines
1.2 KiB
Nix
Raw Normal View History

2023-08-12 07:36:17 +01:00
{
description = "docker base images";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
pkgsStatic = pkgs.pkgsStatic;
lib = pkgs.lib;
rustPlatform = pkgs.makeRustPlatform {
cargo = pkgs.cargo;
rustc = pkgs.rustc;
};
in {
packages = {
flakes-action = pkgs.dockerTools.buildImage {
name = "flakes-action";
contents = with pkgs; [
bash
coreutils
curl
gawk
git-lfs
gnused
nodejs
wget
sudo
nix
];
config = {
Env = [
"LANG=en_GB.UTF-8"
];
};
extraCommands = ''
'';
};
};
devShells = {
default = (pkgs.mkShell {
buildInputs = (with pkgs; [
git-lfs
node
]);
});
};
});
}