-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove mavenix + unused old nix infrastructure" (#928)
- Loading branch information
Showing
13 changed files
with
5,839 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
let | ||
sources = import ./nix/sources.nix; | ||
pinned = import sources."nixpkgs" { | ||
config = { }; | ||
overlays = [ ]; | ||
}; | ||
|
||
in { pkgs ? pinned | ||
|
||
# Override `src` when this project is imported as a Git submodule: | ||
# | ||
# > ttuegel.cleanGitSubtree { | ||
# > name = "llvm-backend"; | ||
# > src = ./parent/repo; | ||
# > subDir = "path/to/submodule"; | ||
# > }; | ||
# | ||
# Use `cleanGitSubtree` whenever possible to preserve the same source code | ||
# layout as the runtimeverification/llvm-backend repository (to enable cache re-use). | ||
# | ||
, src ? null | ||
|
||
# Build an optimized release package. | ||
# Currently requires dependents to use LTO. Use sparingly. | ||
, cmakeBuildType ? "FastBuild" }: | ||
|
||
let | ||
localOverlay = import ./nix/overlay.nix; | ||
|
||
localPkgs = import sources."nixpkgs" { | ||
config = { }; | ||
overlays = [ | ||
(final: prev: | ||
let | ||
ttuegel = import sources."ttuegel" { inherit (prev) pkgs; }; | ||
# Avoid spurious rebuilds by ignoring files that don't affect the build. | ||
mavenix = import sources."mavenix" { inherit (prev) pkgs; }; | ||
in { | ||
llvm-version = 15; | ||
llvm-backend-build-type = cmakeBuildType; | ||
inherit (mavenix) buildMaven; | ||
mavenix-cli = mavenix.cli; | ||
|
||
llvm-backend-src = ttuegel.orElse src (ttuegel.cleanSourceWith { | ||
name = "llvm-backend-src"; | ||
src = ./.; | ||
ignore = [ "/nix" "*.nix" "*.nix.sh" "/.github" ]; | ||
}); | ||
|
||
llvm-backend-matching-src = ttuegel.cleanSourceWith { | ||
name = "llvm-backend-matching-src"; | ||
src = ttuegel.orElse src (ttuegel.cleanGitSubtree { | ||
name = "llvm-backend-src"; | ||
src = ./.; | ||
}); | ||
subDir = "matching"; | ||
}; | ||
|
||
}) | ||
localOverlay | ||
]; | ||
}; | ||
in { | ||
inherit (localPkgs) llvm-backend llvm-backend-matching integration-tests; | ||
inherit (localPkgs) clang; # for compatibility | ||
inherit (localPkgs) mavenix-cli; # for CI | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ mkShell, llvm-backend, llvm-backend-matching, mavenix-cli }: | ||
|
||
mkShell { | ||
inputsFrom = [ llvm-backend llvm-backend-matching ]; | ||
|
||
nativeBuildInputs = [ mavenix-cli ]; | ||
} |
Oops, something went wrong.