File tree Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Original file line number Diff line number Diff line change
1
+ packages : */*.cabal
2
+
3
+ package hsec-tools
4
+ package cvss
Original file line number Diff line number Diff line change
1
+ # 0.1
2
+
3
+ Introduction
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
nixpkgs . url = "github:NixOS/nixpkgs/nixos-unstable" ;
6
6
flake-utils . url = "github:numtide/flake-utils" ;
7
7
toml-parser = {
8
- url = github:glguy/toml-parser/eb7222d9d71aa00d0a37f85ff4cdef89d1ba743d ; # v1.3.0.0
8
+ url = " github:glguy/toml-parser/eb7222d9d71aa00d0a37f85ff4cdef89d1ba743d" ; # v1.3.0.0
9
9
flake = false ;
10
10
} ;
11
11
} ;
19
19
jailbreakUnbreak = pkg :
20
20
pkgs . haskell . lib . doJailbreak ( pkgs . haskell . lib . dontCheck ( pkgs . haskell . lib . unmarkBroken pkg ) ) ;
21
21
22
- project = returnShellEnv :
22
+ cvss = pkgs . haskellPackages . callCabal2nix "cvss" ./code/cvss { } ;
23
+
24
+ hsec-tools = returnShellEnv :
23
25
pkgs . haskellPackages . developPackage {
24
26
inherit returnShellEnv ;
25
27
name = "hsec-tools" ;
26
28
root = ./code/hsec-tools ;
27
29
withHoogle = false ;
28
- overrides = self : super : with pkgs . haskell . lib ; {
30
+ overrides = self : super : {
31
+ inherit cvss ;
29
32
Cabal-syntax = super . Cabal-syntax_3_8_1_0 ;
30
33
toml-parser = jailbreakUnbreak ( super . callCabal2nix "toml-parser" toml-parser { } ) ;
31
34
} ;
52
55
} ;
53
56
in
54
57
{
55
-
56
- packages . hsec-tools = pkgs . haskell . lib . justStaticExecutables ( project false ) ;
58
+ packages . cvss = cvss ;
59
+ packages . hsec-tools = pkgs . haskell . lib . justStaticExecutables ( hsec-tools false ) ;
57
60
packages . hsec-tools-image =
58
61
pkgs . dockerTools . buildImage {
59
62
name = "haskell/hsec-tools" ;
89
92
defaultPackage = self . packages . ${ system } . hsec-tools ;
90
93
91
94
# Used by `nix develop` (dev shell)
92
- devShell = project true ;
95
+ devShell = hsec-tools true ;
93
96
} ) ;
94
97
}
You can’t perform that action at this time.
0 commit comments