This commit is contained in:
Clément DOUIN
2024-11-24 21:04:57 +01:00
parent d9db1af6b2
commit f250551c91
3 changed files with 11 additions and 15 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ jobs:
os: ubuntu-latest
- target: i686-unknown-linux-musl
os: ubuntu-latest
- target: i686-w64-mingw32
os: ubuntu-latest
# FIXME
# - target: i686-w64-mingw32
# os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-13
- target: x86_64-unknown-linux-musl
+3 -2
View File
@@ -2,8 +2,9 @@
let
pkgs = import <nixpkgs> (
if isNull target then { }
else { crossSystem.config = target; }
if isNull target then { } else {
crossSystem = { isStatic = true; config = target; };
}
);
inherit (pkgs) lib hostPlatform;
+5 -11
View File
@@ -1,14 +1,8 @@
{ pkgs ? import <nixpkgs> {
overlays = [
(import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
];
}
}:
let
package = import ./default.nix { inherit pkgs; };
in
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
inputsFrom = [ package ];
buildInputs = with pkgs; [
nixd
nixpkgs-fmt
];
}