Skip to content

Commit

Permalink
Allow getting in a MinGW dev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Dec 2, 2023
1 parent 85067b3 commit e03e7e9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
crossSystems = [
"armv6l-unknown-linux-gnueabihf" "armv7l-unknown-linux-gnueabihf"
"x86_64-unknown-freebsd13" "x86_64-unknown-netbsd"
"x86_64-w64-mingw32"
];

stdenvs = [ "gccStdenv" "clangStdenv" "clang11Stdenv" "stdenv" "libcxxStdenv" "ccacheStdenv" ];
Expand Down Expand Up @@ -208,7 +209,7 @@

buildDeps =
[ curl
bzip2 xz brotli editline
bzip2 xz brotli
openssl sqlite
libarchive
(pkgs.libgit2.overrideAttrs (attrs: {
Expand All @@ -217,10 +218,13 @@
cmakeFlags = (attrs.cmakeFlags or []) ++ ["-DUSE_SSH=exec"];
}))
boost
lowdown-nix
libsodium
]
++ lib.optionals stdenv.isLinux [libseccomp]
++ lib.optionals (!stdenv.hostPlatform.isWindows) [
editline
lowdown-nix
]
++ lib.optional stdenv.isLinux libseccomp
++ lib.optional stdenv.hostPlatform.isx86_64 libcpuid;

checkDeps = [
Expand Down Expand Up @@ -508,7 +512,7 @@
stdenv = currentStdenv;
};

meta.platforms = lib.platforms.unix;
meta.platforms = lib.platforms.unix ++ lib.platforms.windows;
meta.mainProgram = "nix";
});

Expand Down

0 comments on commit e03e7e9

Please sign in to comment.