File tree 6 files changed +24
-54
lines changed
hnix-store-nar/src/System/Nix/Nar
6 files changed +24
-54
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,7 @@ in haskellCi.generalCi
14
14
)
15
15
)
16
16
haskellCi. DhallMatrix :: {
17
- , ghc =
18
- [ haskellCi. GHC. GHC963
19
- , haskellCi. GHC. GHC947
20
- , haskellCi. GHC. GHC928
21
- , haskellCi. GHC. GHC902
22
- , haskellCi. GHC. GHC8107
23
- ]
17
+ , ghc = [ haskellCi. GHC. GHC982 , haskellCi. GHC. GHC966 ]
24
18
, os = [ haskellCi. OS. Ubuntu , haskellCi. OS. MacOS ]
25
19
}
26
20
: haskellCi. CI. Type
Original file line number Diff line number Diff line change 1
1
let haskellCi =
2
2
https://raw.githubusercontent.com/sorki/github-actions-dhall/main/haskell-ci.dhall
3
- sha256:5d7058a7684fd5315467b562853bd1c4a43da691c09293d3715ee739dfa26e08
3
+ sha256:eff4d52e4243777fbe2c800778b24092ace8cd83165cf46b90d5c22e3ebfdd81
4
4
5
5
let defSteps = haskellCi.defaultCabalSteps
6
6
@@ -15,13 +15,7 @@ in haskellCi.generalCi
15
15
)
16
16
)
17
17
haskellCi.DhallMatrix::{
18
- , ghc =
19
- [ haskellCi.GHC.GHC963
20
- , haskellCi.GHC.GHC947
21
- , haskellCi.GHC.GHC928
22
- , haskellCi.GHC.GHC902
23
- , haskellCi.GHC.GHC8107
24
- ]
18
+ , ghc = [ haskellCi.GHC.GHC982, haskellCi.GHC.GHC966 ]
25
19
, os = [ haskellCi.OS.Ubuntu, haskellCi.OS.MacOS ]
26
20
}
27
21
: haskellCi.CI.Type
Original file line number Diff line number Diff line change 4
4
name : " GHC ${{ matrix.ghc }}, Cabal ${{ matrix.cabal }}, OS ${{ matrix.os }}"
5
5
" runs-on " : " ${{ matrix.os }}"
6
6
steps :
7
- - uses : " cachix/install-nix-action@v24 "
7
+ - uses : " cachix/install-nix-action@v27 "
8
8
with :
9
9
nix_path : " nixpkgs=channel:nixos-unstable"
10
- - uses : " cachix/cachix-action@v13 "
10
+ - uses : " cachix/cachix-action@v15 "
11
11
with :
12
12
name : " hnix-store"
13
13
signingKey : " ${{ secrets.CACHIX_SIGNING_KEY }}"
28
28
fi
29
29
- name : freeze
30
30
run : " cabal freeze --enable-tests --enable-benchmarks"
31
- - uses : " actions/cache@v3 "
31
+ - uses : " actions/cache@v4 "
32
32
with :
33
33
key : " ${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal}}-${{ hashFiles('cabal.project.freeze') }}"
34
34
path : |
@@ -45,19 +45,14 @@ jobs:
45
45
strategy :
46
46
matrix :
47
47
cabal :
48
- - ' 3.10 '
48
+ - ' 3.12 '
49
49
ghc :
50
- - ' 9.6.3'
51
- - ' 9.4.7'
52
- - ' 9.2.8'
53
- - ' 9.0.2'
54
- - ' 8.10.7'
50
+ - ' 9.8.2'
51
+ - ' 9.6.6'
55
52
os :
56
53
- " ubuntu-latest"
57
54
- " macos-latest"
58
55
name : Haskell CI
59
56
' on ' :
60
57
pull_request : {}
61
58
push : {}
62
- schedule :
63
- - cron : " 4 20 10 * *"
Original file line number Diff line number Diff line change @@ -32,10 +32,13 @@ spec_fingerprint = do
32
32
it " allows a successful signature verification" $ do
33
33
let msg = Text. encodeUtf8 $ metadataFingerprint def exampleStorePath exampleMetadata
34
34
Signature sig' =
35
- head
36
- $ sig
37
- <$> filter (\ (NarSignature publicKey _) -> publicKey == " cache.nixos.org-1" )
38
- (Set. toList (metadataSigs exampleMetadata))
35
+ case
36
+ sig
37
+ <$> filter (\ (NarSignature publicKey _) -> publicKey == " cache.nixos.org-1" )
38
+ (Set. toList (metadataSigs exampleMetadata))
39
+ of
40
+ (x: _) -> x
41
+ _ -> error " impossible"
39
42
sig' `shouldSatisfy` Ed25519. verify pubkey msg
40
43
41
44
exampleFingerprint :: Text
Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ parseSymlink = do
211
211
currentDirectoryAndFile :: Monad m => NarParser m (FilePath , FilePath )
212
212
currentDirectoryAndFile = do
213
213
dirStack <- State. gets directoryStack
214
- pure (List. foldr1 (</>) (List. reverse $ drop 1 dirStack), head dirStack)
214
+ case dirStack of
215
+ (x: xs) -> pure (List. foldr1 (</>) (List. reverse xs), x)
216
+ _ -> error " currentDirectoryAndFile: empty dirStack"
215
217
216
218
-- | Internal data type representing symlinks encountered in the NAR
217
219
data LinkInfo = LinkInfo
Original file line number Diff line number Diff line change 15
15
} // ( lib . filterAttrs ( n : v : n != "url" ) x ) ) ;
16
16
in
17
17
{
18
- # srk 2023-11-18: this is pinned in nixpkgs unstable to 1.0.5
19
- # causing trouble with ghc963
20
- some = hself . callHackageDirect
21
- { pkg = "some" ;
22
- ver = "1.0.6" ;
23
- sha256 = "sha256-AnjaUzSlsLi3lIURrEfs92Jo5FzX49RyNdfDSfFV3Kk=" ;
24
- } { } ;
25
-
26
- # srk 2023-12-06: until in unstable
27
- dependent-sum-template = hself . callHackageDirect
28
- { pkg = "dependent-sum-template" ;
29
- ver = "0.2.0.1" ;
30
- sha256 = "sha256-quwgFuEBrK96JZenJZcyfk/O0Gp+ukwKEpe1hMqDbIg=" ;
31
- } { } ;
32
-
33
- # srk 2023-11-19: wider unix bound via CPP
34
- # Required for ghc963 since linux-namespaces is pinned
35
- # in unstable to 0.1.3.0
36
- linux-namespaces = hself . callCabal2nix "linux-namespaces"
37
- ( fetchGitHubPR {
38
- url = "https://github.com/redneb/hs-linux-namespaces/pull/4" ;
39
- sha256 = "sha256-R61OCu6b4YoDzIl0vg8cSoP7611TlEdWZfVDnZrJY+g=" ;
40
- } ) { } ;
18
+ # srk 2024-07-28: allow template-haskell 2.22 (GHC 9.8)
19
+ # https://github.com/obsidiansystems/dependent-sum-template/pull/13
20
+ dependent-sum-template =
21
+ haskellLib . doJailbreak
22
+ hsuper . dependent-sum-template_0_2_0_1 ;
41
23
42
24
hnix-store-core =
43
25
lib . pipe
You can’t perform that action at this time.
0 commit comments