File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
templates/chisel/nix/pkgs Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
# SPDX-FileCopyrightText: 2024 Jiuyang Liu <[email protected] >
3
3
4
- { buildFHSEnv
5
- , vcStaticHome
4
+ # This is a bit dirty.
5
+ # Since VCS are close source toolchains, we have no way to fix it for environment changes.
6
+ # So here we have to lock the whole nixpkgs to a working version.
7
+ #
8
+ # For convenience, we still use the nixpkgs defined in flake to "callPackage" this derivation.
9
+ # But the buildFHSEnv, targetPkgs is still from the locked nixpkgs.
10
+ { vcStaticHome
6
11
, snpslmdLicenseFile
12
+ , fetchFromGitHub
7
13
} :
8
- buildFHSEnv {
14
+ let
15
+ nixpkgsSrcs = fetchFromGitHub {
16
+ owner = "NixOS" ;
17
+ repo = "nixpkgs" ;
18
+ "rev" = "c374d94f1536013ca8e92341b540eba4c22f9c62" ;
19
+ "hash" = "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=" ;
20
+ } ;
21
+
22
+ # The vcs we have only support x86-64_linux
23
+ lockedPkgs = import nixpkgsSrcs { system = "x86_64-linux" ; } ;
24
+ in
25
+ lockedPkgs . buildFHSEnv {
9
26
name = "vcs-fhs-env" ;
10
27
11
28
profile = ''
You can’t perform that action at this time.
0 commit comments