Initial commit

This commit is contained in:
Michael Smith
2023-05-04 11:24:05 +02:00
commit f7b57817ff
9 changed files with 307971 additions and 0 deletions

48
flake.nix Normal file
View File

@@ -0,0 +1,48 @@
{
description = "Paletteshifter development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
flake-utils.url = "github:numtide/flake-utils";
devshell = {
url = "github:numtide/devshell";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = { self, nixpkgs, flake-utils, devshell }:
flake-utils.lib.eachDefaultSystem (system: {
devShell =
let
pkgs = import nixpkgs {
inherit system;
overlays = [ devshell.overlay ];
};
in
pkgs.devshell.mkShell {
name = "Paletteshifter development environment";
packages = with pkgs; [
(pkgs.python3.withPackages
(ps: with ps; [ pygame psutil ])
)
nixpkgs-fmt
isort
];
env = [ ];
commands = [
{
name = "paletteshifter:lint";
category = "Maintenance";
help = "Lint all the files in project";
command = ''
nixpkgs-fmt *.nix
'';
}
];
};
});
}