File tree Expand file tree Collapse file tree 13 files changed +22
-57
lines changed
Expand file tree Collapse file tree 13 files changed +22
-57
lines changed Original file line number Diff line number Diff line change 3434 - name : Build cabal-audit
3535 run : |
3636 nix -Lv build
37-
38- - name : Build cabal-audit static
39- run : |
40- nix -Lv build .#cabal-audit-static -o result-static
41-
42- - name : Create release artifacts
43- run : |
44- mkdir -p artifacts
45-
46- cp result-static/bin/cabal-audit artifacts
47- chmod +x artifacts/cabal-audit
48-
49- - name : Upload static cabal-audit exe
50- uses : actions/upload-artifact@v4
51- with :
52- name : cabal-audit
53- path : artifacts/cabal-audit
54-
55- - name : Release nightly cabal-audit exe
56- if : github.ref == 'refs/heads/main'
57- uses : softprops/action-gh-release@v2
58- with :
59- prerelease : true
60- tag_name : nightly
61- files : |
62- artifacts/cabal-audit
63- fail_on_unmatched_files : true
Original file line number Diff line number Diff line change 2222category : Data
2323extra-doc-files :
2424extra-source-files :
25- tested-with : GHC == 9.4.8 || == 9.6.6 || == 9.8 .2
25+ tested-with : GHC == 9.8.4 || == 9.10.3 || == 9.12 .2
2626
2727common common-all
2828 ghc-options :
@@ -74,7 +74,7 @@ library
7474
7575 build-depends :
7676 , aeson
77- , base < 5
77+ , base >= 4.18 && < 5
7878 , bytestring
7979 , Cabal
8080 , cabal-install
Original file line number Diff line number Diff line change 33 description = "cabal-audit's flake" ;
44 inputs = {
55 # flake inputs
6- nixpkgs . url = "github:nixos/nixpkgs/nixpkgs -unstable" ;
6+ nixpkgs . url = "github:nixos/nixpkgs/nixos -unstable" ;
77
88 # flake parts
99 parts . url = "github:hercules-ci/flake-parts" ;
2424 ...
2525 } : let
2626 hlib = pkgs . haskell . lib . compose ;
27- hspkgs = pkgs . haskell . packages . ghc98 . override {
27+ hspkgs = pkgs . haskellPackages . override {
2828 overrides = import ./nix/haskell-overlay.nix { inherit hlib ; } ;
2929 } ;
3030 in {
8787 text = let
8888 v = "fc3453aa95edb296b1e4409f53d1c1210b479fc8" ;
8989 cmd = pkg : ''
90- cabal2nix https://github.com/haskell/security-advisories.git \
90+ cabal2nix https://github.com/haskell/security-advisories \
9191 --revision ${ v } \
9292 --subpath code/${ pkg } / > ./${ pkg } .nix
9393 '' ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ mkDerivation {
1111 pname = "cvss" ;
1212 version = "0.2.0.1" ;
1313 src = fetchgit {
14- url = "https://github.com/haskell/security-advisories.git " ;
14+ url = "https://github.com/haskell/security-advisories" ;
1515 sha256 = "114wj60jfdqb95h3fh3k8s0jy2nzya04rchidfdapnn0l5mf3xhn" ;
1616 rev = "fc3453aa95edb296b1e4409f53d1c1210b479fc8" ;
1717 fetchSubmodules = true ;
Original file line number Diff line number Diff line change 1- _ : hfinal : hprev : {
1+ { hlib , ... } : hfinal : hprev : {
22 cabal-audit = hfinal . callPackage ./cabal-audit.nix { } ;
33 osv = hfinal . callPackage ./osv.nix { } ;
44 purl = hfinal . callPackage ./purl.nix { } ;
55 hsec-core = hfinal . callPackage ./hsec-core.nix { } ;
66 hsec-sync = hfinal . callPackage ./hsec-sync.nix { } ;
7- hsec-tools = hfinal . callPackage ./hsec-tools.nix { } ;
7+ hsec-tools = hlib . doJailbreak ( hfinal . callPackage ./hsec-tools.nix { } ) ;
88 cvss = hfinal . callPackage ./cvss.nix { } ;
99
10- Cabal-syntax = hprev . Cabal-syntax_3_12_1_0 ;
11- Cabal = hprev . Cabal_3_12_1_0 ;
12-
13- extensions = hprev . extensions_0_1_0_2 . override { inherit ( hfinal ) Cabal ; } ;
14-
15- toml-parser = hfinal . callHackage "toml-parser" "2.0.1.0" { } ;
16-
17- typst = hfinal . callHackage "typst" "0.5.0.5" { } ;
18- typst-symbols = hfinal . callHackage "typst-symbols" "0.1.6" { } ;
19- texmath = hfinal . callHackage "texmath" "0.12.8.9" { } ;
10+ Cabal-syntax = hprev . Cabal-syntax_3_16_0_0 ;
11+ Cabal = hprev . Cabal_3_16_0_0 ;
2012}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ mkDerivation {
1717 pname = "hsec-core" ;
1818 version = "0.2.1.0" ;
1919 src = fetchgit {
20- url = "https://github.com/haskell/security-advisories.git " ;
20+ url = "https://github.com/haskell/security-advisories" ;
2121 sha256 = "114wj60jfdqb95h3fh3k8s0jy2nzya04rchidfdapnn0l5mf3xhn" ;
2222 rev = "fc3453aa95edb296b1e4409f53d1c1210b479fc8" ;
2323 fetchSubmodules = true ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ mkDerivation {
2424 pname = "hsec-sync" ;
2525 version = "0.2.0.2" ;
2626 src = fetchgit {
27- url = "https://github.com/haskell/security-advisories.git " ;
27+ url = "https://github.com/haskell/security-advisories" ;
2828 sha256 = "114wj60jfdqb95h3fh3k8s0jy2nzya04rchidfdapnn0l5mf3xhn" ;
2929 rev = "fc3453aa95edb296b1e4409f53d1c1210b479fc8" ;
3030 fetchSubmodules = true ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ mkDerivation {
5050 pname = "hsec-tools" ;
5151 version = "0.3.0.0" ;
5252 src = fetchgit {
53- url = "https://github.com/haskell/security-advisories.git " ;
53+ url = "https://github.com/haskell/security-advisories" ;
5454 sha256 = "114wj60jfdqb95h3fh3k8s0jy2nzya04rchidfdapnn0l5mf3xhn" ;
5555 rev = "fc3453aa95edb296b1e4409f53d1c1210b479fc8" ;
5656 fetchSubmodules = true ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mkDerivation {
1414 pname = "osv" ;
1515 version = "0.2.0.0" ;
1616 src = fetchgit {
17- url = "https://github.com/haskell/security-advisories.git " ;
17+ url = "https://github.com/haskell/security-advisories" ;
1818 sha256 = "114wj60jfdqb95h3fh3k8s0jy2nzya04rchidfdapnn0l5mf3xhn" ;
1919 rev = "fc3453aa95edb296b1e4409f53d1c1210b479fc8" ;
2020 fetchSubmodules = true ;
You can’t perform that action at this time.
0 commit comments