-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from clash-lang/sim-hack
Apply workaround to make HDL generation and simulation work
- Loading branch information
Showing
12 changed files
with
349 additions
and
36 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,4 @@ | ||
# SPDX-FileCopyrightText: 2022 Google LLC | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
use_nix -j8 |
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,8 @@ | ||
-- SPDX-FileCopyrightText: 2022 Google LLC | ||
-- | ||
-- SPDX-License-Identifier: CC0-1.0 | ||
package clash-vexriscv | ||
ghc-options: -Werror | ||
|
||
package clash-vexriscv-sim | ||
ghc-options: -Werror |
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 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 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 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 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,33 @@ | ||
# SPDX-FileCopyrightText: 2022 Google LLC | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{ sources ? import ./sources.nix }: | ||
|
||
let | ||
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"); | ||
overlay = _: nixpkgs: { | ||
# Nix tooling | ||
niv = (import sources.niv {}).niv; | ||
gitignore = import sources.gitignore { inherit (nixpkgs) lib; }; | ||
|
||
# Haskell overrides | ||
haskellPackages = nixpkgs.haskellPackages.override { | ||
overrides = self: super: { | ||
# Disables library profiling, documentation building, and building/running | ||
# test suites to speed up compilation times. This should only be applied | ||
# to local packages. Adding them to others will defeat caching. | ||
applyPrefs = p: | ||
(nixpkgs.haskell.lib.disableLibraryProfiling | ||
(nixpkgs.haskell.lib.dontHaddock | ||
(nixpkgs.haskell.lib.dontCheck p))); | ||
|
||
# External overrides | ||
# .. no external overrides yet .. | ||
|
||
# Internal overrides | ||
# .. no internal overrides yet .. | ||
}; | ||
}; | ||
}; | ||
|
||
in import sources.nixpkgs { overlays = [ rust_overlay overlay ]; } |
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,26 @@ | ||
{ | ||
"gitignore": { | ||
"branch": "master", | ||
"description": "Nix functions for filtering local git sources", | ||
"homepage": "", | ||
"owner": "hercules-ci", | ||
"repo": "gitignore.nix", | ||
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", | ||
"sha256": "07vg2i9va38zbld9abs9lzqblz193vc5wvqd6h7amkmwf66ljcgh", | ||
"type": "tarball", | ||
"url": "https://github.com/hercules-ci/gitignore.nix/archive/a20de23b925fd8264fd7fad6454652e142fd7f73.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
}, | ||
"nixpkgs": { | ||
"branch": "nixos-22.11", | ||
"description": "Nix Packages collection", | ||
"homepage": "", | ||
"owner": "NixOS", | ||
"repo": "nixpkgs", | ||
"rev": "8c54d842d9544361aac5f5b212ba04e4089e8efe", | ||
"sha256": "14hk2lyxy8ajczn77363vw05w24fyx9889q3b89riqgs28acyz87", | ||
"type": "tarball", | ||
"url": "https://github.com/NixOS/nixpkgs/archive/8c54d842d9544361aac5f5b212ba04e4089e8efe.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
} | ||
} |
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,3 @@ | ||
SPDX-FileCopyrightText: 2023 Google LLC | ||
|
||
SPDX-License-Identifier: CC0-1.0 |
Oops, something went wrong.