Skip to content

Commit

Permalink
Merge pull request #46 from dfrankland/flakes
Browse files Browse the repository at this point in the history
Add support for flakes
  • Loading branch information
Mic92 authored Jun 25, 2021
2 parents d060b25 + bc97c0f commit a77ebbe
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
description = "My personal NUR repository";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in
{
packages = forAllSystems (system: import ./default.nix {
pkgs = import nixpkgs { inherit system; };
});
};
}

0 comments on commit a77ebbe

Please sign in to comment.