init
This commit is contained in:
23
flake.nix
Normal file
23
flake.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
description = "My niche packages.";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
||||
in
|
||||
{
|
||||
legacyPackages = forAllSystems (system: import ./default.nix {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
|
||||
packages =
|
||||
forAllSystems (system:
|
||||
nixpkgs.lib.filterAttrs
|
||||
(_: v: nixpkgs.lib.isDerivation v)
|
||||
self.legacyPackages.${system});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user