forked from GitHub/bdwgc-rust
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c970db858a | ||
|
|
21b1b564bb |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,2 @@
|
|||||||
.cargo_cache
|
.cargo_cache
|
||||||
target
|
target
|
||||||
.direnv
|
|
||||||
|
|||||||
6
build.rs
6
build.rs
@@ -17,7 +17,7 @@ fn main() {
|
|||||||
|
|
||||||
println!(
|
println!(
|
||||||
"cargo:rustc-link-search=native={}",
|
"cargo:rustc-link-search=native={}",
|
||||||
dst.join("lib64").display()
|
dst.join("lib").display()
|
||||||
);
|
);
|
||||||
println!("cargo:rustc-link-lib=static=atomic_ops");
|
println!("cargo:rustc-link-lib=static=atomic_ops");
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ fn main() {
|
|||||||
|
|
||||||
println!(
|
println!(
|
||||||
"cargo:rustc-link-search=native={}",
|
"cargo:rustc-link-search=native={}",
|
||||||
dst.join("lib64").display()
|
dst.join("lib").display()
|
||||||
);
|
);
|
||||||
println!("cargo:rustc-link-lib=static=gc");
|
println!("cargo:rustc-link-lib=static=gc");
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ fn main() {
|
|||||||
|
|
||||||
println!(
|
println!(
|
||||||
"cargo:rustc-link-search=native={}",
|
"cargo:rustc-link-search=native={}",
|
||||||
dst.join("lib64").display()
|
dst.join("lib").display()
|
||||||
);
|
);
|
||||||
println!("cargo:rustc-link-lib=static=gc");
|
println!("cargo:rustc-link-lib=static=gc");
|
||||||
}
|
}
|
||||||
|
|||||||
66
flake.lock
generated
66
flake.lock
generated
@@ -1,66 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"fenix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1779185128,
|
|
||||||
"narHash": "sha256-Kl2bkmwZJD3n2KWDxuIlturZ7emqRK+anpD1LmDwpmY=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"rev": "b7bd9323fe26a3b4f4bddbb2c2a1dacabced2f88",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1778869304,
|
|
||||||
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"fenix": "fenix",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rust-analyzer-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1779074864,
|
|
||||||
"narHash": "sha256-0M3WqsWmtXmv9Ev/vnFfCHosWvISDwiuuhQ104UO3CI=",
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"rev": "cdfe408d4b436e806ff525cb3e67588a6a009ed1",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"ref": "nightly",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
54
flake.nix
54
flake.nix
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
fenix = {
|
|
||||||
url = "github:nix-community/fenix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, fenix, ... }:
|
|
||||||
let
|
|
||||||
supportedSystems = [
|
|
||||||
"aarch64-darwin" "aarch64-linux"
|
|
||||||
"x86_64-darwin" "x86_64-linux"
|
|
||||||
];
|
|
||||||
|
|
||||||
each-system = f: nixpkgs.lib.genAttrs supportedSystems (system: f rec {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system overlays;
|
|
||||||
};
|
|
||||||
inherit (pkgs) lib;
|
|
||||||
inherit system;
|
|
||||||
});
|
|
||||||
|
|
||||||
overlays = [
|
|
||||||
fenix.overlays.default
|
|
||||||
];
|
|
||||||
|
|
||||||
in {
|
|
||||||
_pkgs = each-system ({ pkgs, ... }: pkgs);
|
|
||||||
|
|
||||||
devShells = each-system ({ pkgs, lib, ... }: {
|
|
||||||
default = pkgs.mkShell {
|
|
||||||
packages = [
|
|
||||||
pkgs.pkg-config
|
|
||||||
(pkgs.fenix.complete.withComponents [
|
|
||||||
"cargo" "clippy" "rust-src" "rustc" "rustfmt"
|
|
||||||
])
|
|
||||||
pkgs.rust-analyzer-nightly
|
|
||||||
pkgs.cmake
|
|
||||||
];
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
nixConfig = {
|
|
||||||
extra-substituters = [
|
|
||||||
"https://fenix.cachix.org"
|
|
||||||
];
|
|
||||||
extra-trusted-public-keys = [
|
|
||||||
"fenix.cachix.org-1:ecJhr+RdYEdcVgUkjruiYhjbBloIEGov7bos90cZi0Q="
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
2
vendor/bdwgc
vendored
2
vendor/bdwgc
vendored
Submodule vendor/bdwgc updated: 82028767b4...fc2990b5ec
Reference in New Issue
Block a user