Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkgs/modules/databricks-cli/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{ buildGoModule }:
{ pkgs, lib, ... }:

let
Expand All @@ -9,7 +10,7 @@ let
# rebase replit/databricks-cli `main` onto a newer upstream tag, retag
# vX.Y.Z-replit.<n>, push, then update version + hash + vendorHash here.
version = "0.299.0-replit.1";
databricks-cli = pkgs.buildGoModule {
databricks-cli = buildGoModule {
pname = "databricks-cli";
inherit version;

Expand Down
19 changes: 16 additions & 3 deletions pkgs/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ let

# Keep these out of activeModules, as before, without hiding their implementations.
compatibilityModulesList = [
(import ./docker { pkgs = pkgs-docker; })
(import ./docker {
pkgs = pkgs-docker;
go = go_1_26;
})
(import ./zig {
zig = pkgs-zig.zigpkgs.default;
zls = pkgs-zig.zls;
Expand All @@ -47,31 +50,37 @@ let
python = pkgs.python310;
pypkgs = pkgs.python310Packages;
inherit uv;
buildGoModule = buildGo126Module;
})
(import ./python {
python = pkgs.python311;
pypkgs = pkgs.python311Packages;
inherit uv;
buildGoModule = buildGo126Module;
})
(import ./python {
python = pkgs.python312;
pypkgs = pkgs.python312Packages;
inherit uv;
buildGoModule = buildGo126Module;
})
(import ./python-base {
python = pkgs.python311;
pypkgs = pkgs.python311Packages;
inherit uv;
buildGoModule = buildGo126Module;
})
(import ./python-base {
python = pkgs.python312;
pypkgs = pkgs.python312Packages;
inherit uv;
buildGoModule = buildGo126Module;
})
(import ./python-base {
python = pkgs.python313;
pypkgs = pkgs.python313Packages;
inherit uv;
buildGoModule = buildGo126Module;
})
(import ./ty)
(import ./ruff)
Expand Down Expand Up @@ -172,13 +181,17 @@ let
nodejs = pkgs.nodejs_20;
})
(import ./web)
(import ./hermit)
(import ./hermit {
buildGoModule = buildGo126Module;
})
(import ./typescript-language-server {
nodepkgs = pkgs.nodePackages;
})
(import ./replit-rtld-loader)
(import ./graphite-cli)
(import ./databricks-cli)
(import ./databricks-cli {
buildGoModule = buildGo126Module;
})
];

mkModuleSet = buildModule: getId: inputs:
Expand Down
28 changes: 20 additions & 8 deletions pkgs/modules/docker/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{ pkgs, ... }:
{ pkgs, go, ... }:

let

configFiles = pkgs.copyPathToStore ./etc;

replit-runc = pkgs.buildGo121Module {
buildGoModule = pkgs.buildGoModule.override { inherit go; };

buildGoPackage = pkgs.buildGoPackage.override { inherit go; };

docker-buildx = pkgs.docker-buildx.override { inherit buildGoModule; };

docker-compose = pkgs.docker-compose.override { inherit buildGoModule; };

docker-client = pkgs.docker-client.override {
inherit go buildGoModule docker-buildx docker-compose;
};

replit-runc = buildGoModule {
pname = "replit-runc";
version = "1.1.9+replit";

Expand All @@ -30,7 +42,7 @@ let
'';
};

replit-containerd = pkgs.buildGo121Module {
replit-containerd = buildGoModule {
pname = "replit-containerd";
version = "1.7.5+replit";

Expand Down Expand Up @@ -65,7 +77,7 @@ let
replitShimRunc = replit-containerd;
};

replit-buildkit = pkgs.buildGo121Module {
replit-buildkit = buildGoModule {
pname = "replit-buildkit";
version = "v0.13.0-beta1+replit";

Expand Down Expand Up @@ -102,7 +114,7 @@ let
mobyGoPackagePath = "github.com/docker/docker";
mobyVersion = "24.0.7+replit";

replit-moby = pkgs.buildGoPackage {
replit-moby = buildGoPackage {
pname = "replit-moby";
version = mobyVersion;

Expand All @@ -115,7 +127,7 @@ let

goPackagePath = mobyGoPackagePath;

nativeBuildInputs = [ pkgs.makeWrapper pkgs.pkg-config pkgs.go pkgs.libtool ];
nativeBuildInputs = [ pkgs.makeWrapper pkgs.pkg-config go pkgs.libtool ];

buildInputs = [ pkgs.sqlite ];

Expand Down Expand Up @@ -174,8 +186,8 @@ in
replit.packages = [ ];

replit.dev.packages = [
pkgs.docker-client
pkgs.docker-compose
docker-client
docker-compose
replit-moby
replit-containerd
replit-runc
Expand Down
3 changes: 2 additions & 1 deletion pkgs/modules/hermit/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ buildGoModule }:
{ pkgs, lib, ... }:
let
version = "0.38.2";

hermit = pkgs.buildGoModule rec {
hermit = buildGoModule rec {
pname = "hermit";
version = "0.38.2";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/modules/python-base/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ python, pypkgs, uv }:
{ python, pypkgs, uv, buildGoModule }:
{ pkgs-unstable, pkgs-23_05, lib, ... }:
let
pythonVersion = lib.versions.majorMinor python.version;
Expand All @@ -17,7 +17,7 @@ let
sitecustomize = pkgs.callPackage ../python/sitecustomize.nix { };

binary-wrapped-python = pkgs.callPackage ../../python-wrapped {
inherit pkgs python python-ld-library-path;
inherit pkgs buildGoModule python python-ld-library-path;
};

in
Expand Down
4 changes: 2 additions & 2 deletions pkgs/modules/python/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ python, pypkgs, uv }:
{ python, pypkgs, uv, buildGoModule }:
{ pkgs-unstable
, lib
, ...
Expand Down Expand Up @@ -55,7 +55,7 @@ let
};

binary-wrapped-python = pkgs.callPackage ../../python-wrapped {
inherit pkgs python python-ld-library-path;
inherit pkgs buildGoModule python python-ld-library-path;
};

sitecustomize = pkgs.callPackage ./sitecustomize.nix { };
Expand Down
4 changes: 2 additions & 2 deletions pkgs/python-wrapped/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ pkgs, python, python-ld-library-path }:
pkgs.buildGoModule rec {
{ pkgs, buildGoModule, python, python-ld-library-path }:
buildGoModule rec {
pname = "python-wrapped";
version = "0.1.0";

Expand Down
Loading