Skip to content

Commit

Permalink
Merge pull request #115 from DeterminateSystems/system-certs
Browse files Browse the repository at this point in the history
Switch reqwest to rustls-tls-native-roots
  • Loading branch information
grahamc authored Jun 3, 2024
2 parents e4cb2b5 + 9aaef30 commit a676a9d
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 90 deletions.
140 changes: 77 additions & 63 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fh"
version = "0.1.10"
version = "0.1.11"
authors = ["Determinate Systems <[email protected]>"]
edition = "2021"
license = "Apache 2.0"
Expand Down Expand Up @@ -33,7 +33,7 @@ owo-colors = "3.5.0"
regex = "1.9.4"
reqwest = { version = "0.11", default-features = false, features = [
"json",
"rustls-tls",
"rustls-tls-native-roots",
] }
semver = { version = "1.0.18", default-features = false, features = ["serde"] }
serde = { version = "1.0.188", default-features = false, features = ["derive"] }
Expand Down
11 changes: 6 additions & 5 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 7 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@
};

naersk = {
url = "https://flakehub.com/f/nix-community/naersk/0.1.332.tar.gz";
url = "https://flakehub.com/f/nix-community/naersk/0.1.335.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, ... }@inputs:
let
inherit (inputs.nixpkgs) lib;

lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";

version = "${builtins.substring 0 8 lastModifiedDate}-${self.shortRev or "dirty"}";

forSystems = s: f: lib.genAttrs s (system: f rec {
forSystems = s: f: inputs.nixpkgs.lib.genAttrs s (system: f rec {
inherit system;
pkgs = import inputs.nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
});
Expand Down Expand Up @@ -61,22 +59,10 @@
src = self;

doCheck = true;
cargoTestOptions = x: x ++ lib.optionals final.stdenv.isDarwin [
# These tests rely on localhost networking, but appear to be broken on darwin
"--"
"--skip cli::cmd::convert::test::nixpkgs_release_to_flakehub"
"--skip cli::cmd::convert::test::nixpkgs_to_flakehub"
"--skip cli::cmd::convert::test::old_flakehub_to_new_flakehub"
"--skip cli::cmd::convert::test::test_flake1_convert"
"--skip cli::cmd::convert::test::test_nixpkgs_from_registry"
"--skip cli::cmd::eject::test::flakehub_nixpkgs_to_github"
"--skip cli::cmd::eject::test::flakehub_to_github"
"--skip cli::cmd::eject::test::test_flake8_eject"
"--skip cli::cmd::eject::test::versioned_flakehub_to_github"
];
SSL_CERT_FILE = "${final.cacert}/etc/ssl/certs/ca-bundle.crt";

LIBCLANG_PATH = "${final.libclang.lib}/lib";
NIX_CFLAGS_COMPILE = lib.optionalString final.stdenv.isDarwin "-I${final.libcxx.dev}/include/c++/v1";
NIX_CFLAGS_COMPILE = final.lib.optionalString final.stdenv.isDarwin "-I${final.libcxx.dev}/include/c++/v1";

nativeBuildInputs = with final; [
pkg-config
Expand Down Expand Up @@ -111,7 +97,7 @@
name = "dev";

LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
NIX_CFLAGS_COMPILE = lib.optionalString pkgs.stdenv.isDarwin "-I${pkgs.libcxx.dev}/include/c++/v1";
NIX_CFLAGS_COMPILE = pkgs.lib.optionalString pkgs.stdenv.isDarwin "-I${pkgs.libcxx.dev}/include/c++/v1";

nativeBuildInputs = with pkgs; [ pkg-config clang ];
buildInputs = with pkgs; [
Expand All @@ -121,7 +107,7 @@
nixpkgs-fmt
gcc.cc.lib
]
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; with darwin.apple_sdk.frameworks; [
++ lib.optionals (stdenv.isDarwin) (with darwin.apple_sdk.frameworks; [
libiconv
Security
SystemConfiguration
Expand All @@ -130,3 +116,4 @@
});
};
}

0 comments on commit a676a9d

Please sign in to comment.