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 report = mkPackage super "streamly-test-report" ./. "" inShell;
48 nixpkgs.haskell.lib.overrideCabal
50 url = "git@github.com:composewell/bench-report.git";
51 rev = "c11f79b202d812efe4d1785e0537f1ad4d947bfe";
52 }; in super.callCabal2nix "bench-report" src {})
54 { enableLibraryProfiling = false;
58# streamly-coreutils = let
59# src = "git@github.com:composewell/streamly-coreutils.git";
60# rev = "a12756efe24bbf303f2f6d66a95426c7657d297b";
61# in mkPkgGit super src rev "streamly-coreutils";
64 nixpkgs.haskell.lib.overrideCabal
66 url = "git@github.com:composewell/streamly-coreutils.git";
67 rev = "8fa4a3ebedb3f970f64b7d78d8ab340b0f771abe";
68 }; in super.callCabal2nix "streamly-coreutils" src {})
70 { librarySystemDepends =
71 if builtins.currentSystem == "x86_64-darwin"
72 then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
74 #enableLibraryProfiling = false;
80 src = "https://github.com/composewell/streamly-shell.git";
81 rev = "7d77ddc0c06aec21fbbfd1b920ec4f58da654a1b";
82 in mkPkgGit super src rev "streamly-shell";
84 streamly-process = let
85 src = "https://github.com/composewell/streamly-process.git";
86 rev = "a56ef61c1208c2d564a526eba315d903c0b4af2c";
87 in nixpkgs.haskell.lib.dontCheck
88 (mkPkgGit super src rev "streamly-process");
90 #streamly-process = nixpkgs.haskell.lib.dontCheck
91 # (super.callHackageDirect {
92 # pkg = "streamly-process";
94 # sha256 = "01nxisqfmn29fbirdsx71sfjp2rdqwrf469qyjcql2d11i1bxn94";
97 # streamly = super.callHackageDirect {
100 # sha256 = "0vy2lkljizlhpbpbybmg9jcmj2g4s1aaqd2dzy5c0y0n4rgwxask";
103 nixpkgs.haskell.lib.overrideCabal
104 #(super.callHackageDirect
105 # { pkg = "streamly";
107 # sha256 = "sha256-CjFq9SCdbgLZa7NqOE4OtC8OaFg4vK8VmIDjGU5rGko=";
109 (let src = fetchGit {
110 url = "git@github.com:composewell/streamly.git";
111 rev = "a849812d9960d5b7868e770156ab774ee8f70157";
112 }; in super.callCabal2nix "streamly" src {})
114 { librarySystemDepends =
115 if builtins.currentSystem == "x86_64-darwin"
116 then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
118 #enableLibraryProfiling = false;
123 nixpkgs.haskell.lib.overrideCabal
124 (let src = fetchGit {
125 url = "git@github.com:composewell/streamly.git";
126 rev = "a849812d9960d5b7868e770156ab774ee8f70157";
127 }; in super.callCabal2nix "streamly-core" "${src}/core" {})
129 { librarySystemDepends =
130 if builtins.currentSystem == "x86_64-darwin"
131 then [nixpkgs.darwin.apple_sdk.frameworks.Cocoa]
133 #enableLibraryProfiling = false;
140 drv = mkHaskellPackages true;
142 shell = drv.shellFor {
146 # Use a better prompt
148 export CABAL_DIR="$(pwd)/.cabal.nix"
149 if test -n "$PS_SHELL"
151 export PS1="$PS_SHELL\[$bldred\](nix)\[$txtrst\] "
155in if nixpkgs.lib.inNixShell
157 else (mkHaskellPackages false).streamly-test-report
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