Last active
July 25, 2024 02:40
-
-
Save maxmoehl/6276f724bfeef5047cf5c878c40a487a to your computer and use it in GitHub Desktop.
A minimal base for building multi-arch, multi-os nix flakes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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