3 "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz";
4 nixpkgsDefault = import (builtins.fetchTarball nixpkgsPath_21_11) { };
7 nixpkgs ? nixpkgsDefault
11 if compiler == "default"
12 then nixpkgs.haskellPackages
13 else nixpkgs.haskell.packages.${compiler};
15 mkPackage = super: pkg: path: opts: inShell:
16 let orig = super.callCabal2nixWithOptions pkg path opts {};
18 # Avoid copying the source directory to nix store by using
20 then orig.overrideAttrs (oldAttrs: { src = null; })
23 mkPkgGit = super: gitSrc: rev: name:
25 src = builtins.fetchGit {
29 in super.callCabal2nix name src { };
31 mkPkgGitRef = super: gitSrc: rev: ref: name:
33 src = builtins.fetchGit {
38 in super.callCabal2nix name src { };
40 mkHaskellPackages = inShell:
41 haskellPackages.override {
42 overrides = self: super:
43 with nixpkgs.haskell.lib;
45 test-runner = mkPackage super "test-runner" ./. "" inShell;
46 streamly-targets = mkPackage super "streamly-targets" ../../targets "" false;
49 nixpkgs.haskell.lib.overrideCabal
51 url = "git@github.com:composewell/bench-report.git";
52 rev = "3e016780cd125f6c074b70f4ffed2329e2c4ab68";
53 }; in super.callCabal2nix "bench-report" src {})
55 { enableLibraryProfiling = false;
59 bench-show = super.callHackageDirect {
62 sha256 = "16b8vyzdp9b5bh34kqmbfwjsyv8wgnxxwl8kjcpgxjsh52xzyaa0";
65# streamly-coreutils = let
66# src = "git@github.com:composewell/streamly-coreutils.git";
67# rev = "a12756efe24bbf303f2f6d66a95426c7657d297b";
68# in mkPkgGit super src rev "streamly-coreutils";
71 nixpkgs.haskell.lib.overrideCabal
73 url = "git@github.com:composewell/streamly-coreutils.git";
74 rev = "b1e6fc37f0e898c54378129750d3ccc1c034f611";
75 }; in super.callCabal2nix "streamly-coreutils" src {})
77 { librarySystemDepends =
78 if builtins.currentSystem == "x86_64-darwin"
79 then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
81 #enableLibraryProfiling = false;
87 src = "https://github.com/composewell/streamly-shell.git";
88 rev = "1b3fea3239ebe47963955d81565b9d5e34567ab7";
89 in mkPkgGit super src rev "streamly-shell";
91 streamly-process = let
92 src = "https://github.com/composewell/streamly-process.git";
93 rev = "e310c8a9c6e61515373a2f5f1fb82f6e15fe452b";
94 in nixpkgs.haskell.lib.dontCheck
95 (mkPkgGit super src rev "streamly-process");
97 #streamly-process = nixpkgs.haskell.lib.dontCheck
98 # (super.callHackageDirect {
99 # pkg = "streamly-process";
101 # sha256 = "01nxisqfmn29fbirdsx71sfjp2rdqwrf469qyjcql2d11i1bxn94";
104 # streamly = super.callHackageDirect {
107 # sha256 = "0vy2lkljizlhpbpbybmg9jcmj2g4s1aaqd2dzy5c0y0n4rgwxask";
110 nixpkgs.haskell.lib.overrideCabal
111 #(super.callHackageDirect
112 # { pkg = "streamly";
114 # sha256 = "sha256-CjFq9SCdbgLZa7NqOE4OtC8OaFg4vK8VmIDjGU5rGko=";
116 (let src = fetchGit {
117 url = "git@github.com:composewell/streamly.git";
118 rev = "14ee0b70363cf925e9cc067bf1df4ecbd047ac38";
119 }; in super.callCabal2nix "streamly" src {})
121 { librarySystemDepends =
122 if builtins.currentSystem == "x86_64-darwin"
123 then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
125 #enableLibraryProfiling = false;
130 nixpkgs.haskell.lib.overrideCabal
131 (let src = fetchGit {
132 url = "git@github.com:composewell/streamly.git";
133 rev = "14ee0b70363cf925e9cc067bf1df4ecbd047ac38";
134 }; in super.callCabal2nix "streamly-core" "${src}/core" {})
136 { librarySystemDepends =
137 if builtins.currentSystem == "x86_64-darwin"
138 then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
140 #enableLibraryProfiling = false;
147 drv = mkHaskellPackages true;
149 shell = drv.shellFor {
153 # Use a better prompt
155 export CABAL_DIR="$(pwd)/.cabal.nix"
156 if test -n "$PS_SHELL"
158 export PS1="$PS_SHELL\[$bldred\](nix)\[$txtrst\] "
162in if nixpkgs.lib.inNixShell
164 else (mkHaskellPackages false).test-runner
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