mirror of
https://github.com/matter-labs/nixsgx.git
synced 2025-07-23 00:04:47 +02:00
Merge 5d19952748
into 788ff52330
This commit is contained in:
commit
85e2d8a42f
5 changed files with 16 additions and 14 deletions
6
.github/workflows/nix.yml
vendored
6
.github/workflows/nix.yml
vendored
|
@ -28,8 +28,6 @@ jobs:
|
||||||
endpoint: https://attic.teepot.org/
|
endpoint: https://attic.teepot.org/
|
||||||
cache: tee-pot
|
cache: tee-pot
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
- name: Enable magic Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
|
|
||||||
- run: nix fmt . -- --check
|
- run: nix fmt . -- --check
|
||||||
|
|
||||||
|
@ -50,8 +48,6 @@ jobs:
|
||||||
endpoint: https://attic.teepot.org/
|
endpoint: https://attic.teepot.org/
|
||||||
cache: tee-pot
|
cache: tee-pot
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
- name: Enable magic Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
|
|
||||||
- run: nix flake check -L --show-trace --keep-going
|
- run: nix flake check -L --show-trace --keep-going
|
||||||
|
|
||||||
|
@ -73,8 +69,6 @@ jobs:
|
||||||
endpoint: https://attic.teepot.org/
|
endpoint: https://attic.teepot.org/
|
||||||
cache: tee-pot
|
cache: tee-pot
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
- name: Enable magic Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
|
|
||||||
- name: nix build
|
- name: nix build
|
||||||
run: nix run github:nixos/nixpkgs/nixos-23.11#nixci
|
run: nix run github:nixos/nixpkgs/nixos-23.11#nixci
|
||||||
|
|
8
flake.lock
generated
8
flake.lock
generated
|
@ -55,16 +55,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733550349,
|
"lastModified": 1748437600,
|
||||||
"narHash": "sha256-NcGumB4Lr6KSDq+nIqXtNA8QwAQKDSZT7N9OTGWbTrs=",
|
"narHash": "sha256-hYKMs3ilp09anGO7xzfGs3JqEgUqFMnZ8GMAqI6/k04=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e2605d0744c2417b09f8bf850dfca42fcf537d34",
|
"rev": "7282cb574e0607e65224d33be8241eae7cfe0979",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-25.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
|
|
||||||
snowfall-lib = {
|
snowfall-lib = {
|
||||||
url = "github:snowfallorg/lib?ref=c6238c83de101729c5de3a29586ba166a9a65622";
|
url = "github:snowfallorg/lib?ref=c6238c83de101729c5de3a29586ba166a9a65622";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ nodejs_18, enableNpm ? false }:
|
{ nodejs_24, enableNpm ? false }:
|
||||||
nodejs_18.overrideAttrs (prevAttrs: {
|
nodejs_24.overrideAttrs (prevAttrs: {
|
||||||
inherit enableNpm;
|
inherit enableNpm;
|
||||||
configureFlags = prevAttrs.configureFlags ++ [ "--without-node-snapshot" ];
|
configureFlags = prevAttrs.configureFlags ++ [ "--without-node-snapshot" ];
|
||||||
})
|
})
|
||||||
|
|
|
@ -146,14 +146,22 @@ stdenv.mkDerivation rec {
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=missing-include-dirs";
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=missing-include-dirs -Wno-error=implicit-fallthrough -Wno-error=implicit-int -Wno-error=declaration-missing-parameter-type";
|
||||||
|
|
||||||
buildFlags = [
|
buildFlags = [
|
||||||
"sdk_install_pkg"
|
"sdk_install_pkg"
|
||||||
|
"COMMON_FLAGS+=-Wno-error=missing-include-dirs"
|
||||||
|
"COMMON_FLAGS+=-Wno-error=implicit-fallthrough"
|
||||||
|
"COMMON_FLAGS+=-Wno-error=implicit-int"
|
||||||
|
"COMMON_FLAGS+=-Wno-error=declaration-missing-parameter-type"
|
||||||
|
"V=1"
|
||||||
] ++ lib.optionals debug [
|
] ++ lib.optionals debug [
|
||||||
"DEBUG=1"
|
"DEBUG=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# sigh! Intel
|
||||||
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
patchShebangs linux/installer/bin/sgx_linux_x64_sdk_${version}.bin
|
patchShebangs linux/installer/bin/sgx_linux_x64_sdk_${version}.bin
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue