Skip to content

Commit

Permalink
Merge pull request #4464 from unisonweb/travis/nix-flake-c-deps
Browse files Browse the repository at this point in the history
provide some deps for the nix linker
  • Loading branch information
aryairani authored Dec 8, 2023
2 parents b940912 + 1c02536 commit 6442125
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,27 @@
hpack = unstable.hpack;
};
nixpkgs-devShells = {
only-tools-nixpkgs = unstable.mkShellNoCC {
only-tools-nixpkgs = unstable.mkShell {
name = "only-tools-nixpkgs";
buildInputs = with nixpkgs-packages; [
ghc
ormolu
hls
stack
hpack
];
buildInputs =
let
build-tools = with nixpkgs-packages; [
ghc
ormolu
hls
stack
hpack
];
native-packages = pkgs.lib.optionals pkgs.stdenv.isDarwin
(with unstable.darwin.apple_sdk.frameworks;
[ Cocoa ]);
c-deps = with unstable;
[ pkg-config zlib glibcLocales ];
in
build-tools ++ c-deps ++ native-packages;
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.zlib}/lib:$LD_LIBRARY_PATH
'';
};
};
in
Expand Down

0 comments on commit 6442125

Please sign in to comment.