59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
inputs.fup.url = "github:gytis-ivaskevicius/flake-utils-plus";
|
|
|
|
nixConfig = {
|
|
nix = ["http://cache.home"];
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
fup,
|
|
nixpkgs,
|
|
}:
|
|
fup.lib.eachSystem [fup.lib.system.x86_64-linux] (system: let
|
|
pkgs = import nixpkgs {inherit system;};
|
|
|
|
shells = {
|
|
nix = {
|
|
name = "generic nix";
|
|
packages = with pkgs; [
|
|
alejandra
|
|
rnix-lsp
|
|
];
|
|
};
|
|
node = {
|
|
name = "generic node";
|
|
packages = with pkgs; [
|
|
nodejs
|
|
yarn
|
|
nodePackages.vls
|
|
nodePackages.typescript-language-server
|
|
nodePackages.yaml-language-server
|
|
nodePackages.vscode-json-languageserver-bin
|
|
nodePackages.vscode-html-languageserver-bin
|
|
nodePackages.vscode-css-languageserver-bin
|
|
];
|
|
};
|
|
nodeIonic = {
|
|
name = "generic node + ionic";
|
|
packages =
|
|
shells.node.packages
|
|
++ (with pkgs; [
|
|
android-studio
|
|
]);
|
|
};
|
|
python = {
|
|
name = "generic python";
|
|
packages = with pkgs; [
|
|
python3Packages.python-lsp-server
|
|
];
|
|
};
|
|
};
|
|
in {
|
|
devShells = pkgs.lib.attrsets.mapAttrs (name: value: pkgs.mkShell value) shells;
|
|
|
|
hydraJobs = self.devShells.${system};
|
|
});
|
|
}
|