You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
731 B

  1. {
  2. description = "Juni's Vanilla Flake Template";
  3. inputs = {
  4. nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
  5. flake-utils = {
  6. url = "github:numtide/flake-utils";
  7. inputs.nixpkgs.follows = "nixpkgs";
  8. };
  9. };
  10. outputs = { self, nixpkgs, flake-utils }:
  11. with flake-utils.lib;
  12. eachDefaultSystem (system:
  13. let
  14. pkgs = import nixpkgs { inherit system; };
  15. version = "0.1.0";
  16. name = "package name";
  17. in {
  18. devShell = pkgs.mkShell {
  19. buildInputs = with pkgs; [ python3 poetry gunicorn ];
  20. };
  21. defaultPackage = pkgs.stdenv.mkDerivation { inherit name version; };
  22. formatter = nixpkgs.legacyPackages."${system}".nixfmt;
  23. });
  24. }