Skip to content

Commit

Permalink
Merge branch 'replit:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
7heMech authored Jul 27, 2024
2 parents 380f7ba + 8b972d6 commit d0c3640
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 10 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@
'';
};
};

} // rec {
python38 = pkgs.python310.override {
sourceVersion = {
major = "3";
minor = "8";
patch = "18";
suffix = "";
};
hash = "sha256-P/txzTSaMmunsvrcfn34a6V33ZxJF+UqhAGtvadAXj8=";
};


python38Full = python38.override {
self = python38Full;
pythonAttr = "python38Full";
bluezSupport = true;
x11Support = true;
};

python38Packages = python38Full.pkgs;
};
formatter.x86_64-linux = pkgs.nixpkgs-fmt;
packages.x86_64-linux = import ./pkgs {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ let

modulesList = [
(import ./python {
python = pkgs-23_05.python38Full;
pypkgs = pkgs-23_05.python38Packages;
python = pkgs.python38Full;
pypkgs = pkgs.python38Packages;
})
(import ./python {
python = pkgs.python39Full;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/modules/nodejs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ in
language = "javascript";
extensions = [ ".js" ".jsx" ".ts" ".tsx" ".json" ".html" ];
start = {
args = [ "${run-prettier}/bin/run-prettier" "--stdin-filepath" "-f" "$file" ];
args = [ "${run-prettier}/bin/run-prettier" ];
};
stdin = true;
supportsRangeFormatting = true;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/modules/python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
let
pythonVersion = lib.versions.majorMinor python.version;

pkgs = if pythonVersion == "3.8" then pkgs-23_05 else pkgs-unstable;
pkgs = pkgs-unstable;

pylibs-dir = ".pythonlibs";

Expand Down
6 changes: 6 additions & 0 deletions pkgs/modules/python/pip.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ let
# and we don't need the docs
postBuild = "";
postInstall = "";

nativeBuildInputs = [
pkgs.installShellFiles
pypkgs.setuptools
pypkgs.wheel
];
});

config = pkgs.writeTextFile {
Expand Down

0 comments on commit d0c3640

Please sign in to comment.