61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
|
{
|
||
|
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
|
||
|
]);
|
||
|
|
||
|
});
|
||
|
};
|
||
|
});
|
||
|
}
|
||
|
|