Easily archive entire directories in whichever manner you wish.
1{
2 description = "A Nix-flake-based Shell development environment";
3
4 inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
5
6 outputs = { self, nixpkgs }:
7 let
8 supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
9 forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
10 pkgs = import nixpkgs { inherit system; };
11 });
12 in
13 {
14 devShells = forEachSupportedSystem ({ pkgs }: {
15 default = pkgs.mkShell {
16 packages = with pkgs; [
17 shellcheck
18 checkbashisms
19 gawk
20 coreutils
21 par2cmdline
22 xz
23 jq
24 ];
25 };
26 });
27 };
28}