Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SCOTT-HAMILTON committed Jul 10, 2024
1 parent 9377927 commit e632e1c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
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);

onlyUnbroken = attrs:
nixpkgs.lib.filterAttrs (n: v: !(builtins.hasAttr "broken" v.meta && v.meta.broken )) attrs;
in
{
legacyPackages = forAllSystems (system: import ./default.nix {
pkgs = import nixpkgs { inherit system; };
});
packages = onlyUnbroken (forAllSystems (system: nixpkgs.lib.filterAttrs (_: v: nixpkgs.lib.isDerivation v) self.legacyPackages.${system}));
};
}

0 comments on commit e632e1c

Please sign in to comment.