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.

30 lines
809 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. myR = pkgs.rWrapper.override{ packages = with pkgs.rPackages; [ crul ]; };
  18. in {
  19. devShell = pkgs.mkShell {
  20. buildInputs = with pkgs; [ python3 poetry myR ];
  21. };
  22. defaultPackage = pkgs.stdenv.mkDerivation { inherit name version; };
  23. formatter = nixpkgs.legacyPackages."${system}".nixfmt;
  24. });
  25. }