Skip to content

Instantly share code, notes, and snippets.

@maxmoehl
Last active July 25, 2024 02:40
Show Gist options
  • Save maxmoehl/6276f724bfeef5047cf5c878c40a487a to your computer and use it in GitHub Desktop.
Save maxmoehl/6276f724bfeef5047cf5c878c40a487a to your computer and use it in GitHub Desktop.
A minimal base for building multi-arch, multi-os nix flakes
{
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-22.11;
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
packages.default = pkgs.buildEnv {
name = "hello";
paths = with pkgs; [
hello
];
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment