pronoun-o-matic/flake.nix

32 lines
937 B
Nix
Raw Normal View History

2022-06-04 22:18:32 +02:00
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
pythonPackages = pkgs.python310Packages;
pythonDeps = with pythonPackages; [ mypy flask pytest pylint black types-setuptools ];
in
{
packages.pronoun-o-matic = pythonPackages.buildPythonApplication {
pname = "pronoun-o-matic";
version = "1.0";
propagatedBuildInputs = pythonDeps;
src = ./.;
};
devShell = pkgs.mkShell {
buildInputs = [pythonPackages.python] ++ pythonDeps;
};
defaultPackage = self.packages.${system}.pronoun-o-matic;
});
}