This repository has been archived on 2022-09-16. You can view files and clone it, but cannot push or open issues/pull-requests.
tlaternet-templates/flake.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2021-04-07 21:41:11 +01:00
{
description = "tlater.net web server contents";
inputs = {
2022-06-15 14:55:26 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
2022-07-30 17:42:07 +01:00
nix-filter.url = "github:numtide/nix-filter";
2022-06-15 19:50:50 +01:00
npmlock2nix = {
url = "github:nix-community/npmlock2nix";
flake = false;
};
2021-04-07 21:41:11 +01:00
};
2022-06-15 19:50:50 +01:00
outputs = {
self,
nixpkgs,
2022-07-30 17:42:07 +01:00
nix-filter,
2022-06-15 19:50:50 +01:00
npmlock2nix,
}: let
# At the moment, we only deploy to x86_64-linux. Update when we
# care about another platform.
system = "x86_64-linux";
overlays = [
(final: prev: {
npmlock2nix = import npmlock2nix {pkgs = prev;};
})
];
pkgs = import nixpkgs {inherit system overlays;};
2022-08-03 01:47:50 +01:00
package = import ./nix/package.nix {
inherit self pkgs;
nix-filter = nix-filter.lib;
};
2022-06-15 19:50:50 +01:00
in {
apps.${system} = import ./nix/utilities {inherit pkgs;};
2022-06-15 19:50:50 +01:00
packages.${system} = rec {
2022-08-01 21:14:18 +01:00
tlaternet-templates = package.package;
2022-06-15 19:50:50 +01:00
default = tlaternet-templates;
};
2022-06-15 19:50:50 +01:00
devShells.${system} = {
2022-08-01 21:14:18 +01:00
default = package.shell;
2021-04-07 21:41:11 +01:00
};
2022-08-03 01:47:50 +01:00
checks.${system} = import ./nix/checks.nix {
inherit self pkgs;
nix-filter = nix-filter.lib;
};
2022-06-15 19:50:50 +01:00
};
2021-04-07 21:41:11 +01:00
}