convert to flake

This commit is contained in:
2023-02-28 19:56:32 +01:00
committed by tv
parent d1424777b5
commit 66a1f68334
4 changed files with 74 additions and 5 deletions

28
flake.nix Normal file
View File

@@ -0,0 +1,28 @@
{
description = "nix library extension, containing sophisticated script and code generator functions";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = inputs @ {
self,
nixpkgs,
flake-utils,
}: let
nix-writersOverlay = import ./pkgs;
in
{
overlays = {
nix-writers = nix-writersOverlay;
default = nix-writersOverlay;
};
}
// flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
nix-writers = nix-writersOverlay pkgs pkgs;
in {
legacyPackages = nix-writers;
});
}