Skip to content

Commit 5333233

Browse files
committed
fix: add sapling to the nix flake
1 parent 22e781e commit 5333233

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

flake.nix

+7-3
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@
4848
openssl
4949
pango
5050
pixman
51-
pkg-config
51+
pkg-config-unwrapped
5252
postgresql
5353
protobuf
5454
protoc-gen-go
5555
ripgrep
56+
sapling
5657
shellcheck
5758
shfmt
5859
sqlc
@@ -83,7 +84,7 @@
8384
baseDevEnvImage = pkgs.dockerTools.pullImage {
8485
imageName = "ubuntu";
8586
imageDigest = "sha256:7a520eeb6c18bc6d32a21bb7edcf673a7830813c169645d51c949cecb62387d0";
86-
sha256 = "ajZzFSG/q7F5wAXfBOPpYBT+aVy8lqAXtBzkmAe2SeE=";
87+
sha256 = "090zricz7n1kbphd7gwhvavj7m1j7bhh4aq3c3mrik5q8pxh4j58";
8788
finalImageName = "ubuntu";
8889
finalImageTag = "lunar";
8990
};
@@ -109,10 +110,13 @@
109110
mkdir -p /etc/init.d
110111
'';
111112
};
113+
allPackages = devShellPackages ++ devImagePackages;
112114
# Environment variables that live in `/etc/environment` in the container.
113115
# These will also be applied to the container config.
114116
devEnvVars = [
115-
"PATH=${pkgs.lib.makeBinPath (devShellPackages ++ devImagePackages)}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/coder/go/bin"
117+
"PATH=${pkgs.lib.makeBinPath (allPackages)}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/coder/go/bin"
118+
"LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath (allPackages)}"
119+
"PKG_CONFIG_PATH=${pkgs.lib.makeSearchPathOutput "lib/pkgconfig" "lib/pkgconfig" allPackages}"
116120
# This setting prevents Go from using the public checksum database for
117121
# our module path prefixes. It is required because these are in private
118122
# repositories that require authentication.

0 commit comments

Comments
 (0)