1{ pkgs, lib, haskellLib }:
9 library = { buildable = true; planned = true; };
13 package.identifier.name = "empty";
14 package.buildable = true;
19 benchmarks = { bbb = { buildable = true; planned = true; }; };
20 exes = { eee = { buildable = true; planned = true; }; };
21 foreignlibs = { fff = { buildable = true; planned = true; }; };
22 library = { buildable = true; planned = true; };
24 tests = { ttt = { buildable = true; planned = true; }; };
26 package.identifier.name = "nnn";
27 package.buildable = true;
31 url = "https://github.com/input-output-hk/haskell.nix.git";
32 ref = "487eea1c249537d34c27f6143dff2b9d5586c657";
33 sha256 = "077j5j3j86qy1wnabjlrg4dmqy1fv037dyq3xb8ch4ickpxxs123";
37 # identity function for applyComponents
38 test-applyComponents-id = {
39 expr = haskellLib.applyComponents (componentId: component: component) emptyConfig;
40 expected = emptyConfig.components;
43 # map a component to its component name and check these are correct
44 test-applyComponents-library = {
45 expr = haskellLib.applyComponents (componentId: component: componentId.cname) emptyConfig;
46 expected = emptyConfig.components // { library = "empty"; };
49 test-applyComponents-components = {
50 expr = haskellLib.applyComponents (componentId: component: component) componentsConfig;
51 expected = componentsConfig.components;
54 # testing that the tests work
61 expr = __toJSON (haskellLib.parseBlock "cabal.project" (_: null) ''
63 location: https://github.com/input-output-hk/haskell.nix.git
64 tag: 487eea1c249537d34c27f6143dff2b9d5586c657
65 --sha256: 077j5j3j86qy1wnabjlrg4dmqy1fv037dyq3xb8ch4ickpxxs123
69 otherText = "-- end of block\n";
70 sourceRepo = testRepoData // { subdirs = ["."]; };
75 expr = __toJSON (haskellLib.parseBlock "cabal.project" (_: null) ''
77 location: https://github.com/input-output-hk/haskell.nix.git
78 tag: 487eea1c249537d34c27f6143dff2b9d5586c657
79 --sha256: 077j5j3j86qy1wnabjlrg4dmqy1fv037dyq3xb8ch4ickpxxs123
84 otherText = "-- end of block\n";
85 sourceRepo = testRepoData // { subdirs = ["dir"]; };
90 expr = __toJSON (haskellLib.parseBlock "cabal.project" (_: null) ''
92 location: https://github.com/input-output-hk/haskell.nix.git
93 tag: 487eea1c249537d34c27f6143dff2b9d5586c657
94 --sha256: 077j5j3j86qy1wnabjlrg4dmqy1fv037dyq3xb8ch4ickpxxs123
99 otherText = "-- end of block\n";
100 sourceRepo = testRepoData // { subdirs = ["dir1" "dir2"]; };
105 expr = __toJSON (haskellLib.parseBlock "cabal.project" (_: null) ''
107 location: https://github.com/input-output-hk/haskell.nix.git
108 tag: 487eea1c249537d34c27f6143dff2b9d5586c657
109 --sha256: 077j5j3j86qy1wnabjlrg4dmqy1fv037dyq3xb8ch4ickpxxs123
115 expected = __toJSON {
116 otherText = "-- end of block\n";
117 sourceRepo = testRepoData // { subdirs = ["dir1" "dir2"]; };
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list