Skip to content

Commit 3e855a1

Browse files
Include all open source pkgs, use nixpkgs-unstable
1 parent f2cde43 commit 3e855a1

5 files changed

Lines changed: 137 additions & 39 deletions

File tree

default.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ nixpkgs ? import
99
let
1010
commit =
1111
if builtins.match ".*darwin.*" builtins.currentSystem != null
12-
# use https://channels.nixos.org/nixpkgs-25.05-darwin/git-revision
12+
#see https://channels.nixos.org/nixpkgs-25.05-darwin/git-revision
1313
then "c3d456aad3a84fcd76b4bebf8b48be169fc45c31"
1414
#stan fails to build for macOS on this one
1515
#then "branch-off-24.11" # nixpkgs 24.11
16-
# use https://channels.nixos.org/nixpkgs-25.05/git-revision
17-
#else "b2a3852bd078e68dd2b3dfa8c00c67af1f0a7d20";
16+
else "de69d2ba6c70e747320df9c096523b623d3a4c35"; # nixpkgs-unstable
17+
#see https://channels.nixos.org/nixpkgs-25.05/git-revision
18+
#else "b2a3852bd078e68dd2b3dfa8c00c67af1f0a7d20"; # nixpkgs 25.05
1819
#else "50ab793786d9de88ee30ec4e4c24fb4236fc2674"; # nixpkgs 24.11
19-
else "branch-off-24.11"; # nixpkgs 24.11
20+
#else "branch-off-24.11"; # nixpkgs 24.11
2021
in
2122
builtins.fetchTarball {
2223
url = "https://github.com/NixOS/nixpkgs/archive/${commit}.tar.gz";
@@ -49,7 +50,7 @@ in
4950
}:
5051
let src =
5152
builtins.fetchTarball {
52-
url = "https://github.com/composewell/nixpack/archive/59fdf661cb2f7df0.tar.gz";
53+
url = "https://github.com/composewell/nixpack/archive/e50da53dfcf24085fff75149a.tar.gz";
5354
};
5455
nixpack = import "${src}/nix";
5556

flake.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
description = "Streamly Development Environment";
2+
description = "Composewell Open Source Packages";
33

44
# XXX it downloads both of these on both systems.
55
inputs = {
6-
nixpkgs.url = "github:NixOS/nixpkgs/branch-off-24.11";
6+
nixpkgs.url = "github:NixOS/nixpkgs/de69d2ba6c70e747320df9c096523b623d3a4c35"; # nixpkgs-unstable
77
#nixpkgs.url = "github:NixOS/nixpkgs/b2a3852bd078e68dd2b3dfa8c00c67af1f0a7d20"; # nixpkgs-25.05
8+
#nixpkgs.url = "github:NixOS/nixpkgs/branch-off-24.11";
89
nixpkgs-darwin.url = "github:NixOS/nixpkgs/c3d456aad3a84fcd76b4bebf8b48be169fc45c31"; # nixpkgs-25.05-darwin
910
# For local testing use "path:.../nixpack";
10-
nixpack.url = "github:composewell/nixpack/59fdf661cb2f7df0929f89818a9dfcf6c6c23a78";
11+
nixpack.url = "github:composewell/nixpack/e50da53dfcf24085fff75149a266646b28bd18fb";
1112
};
1213

1314
outputs = { self, nixpkgs, nixpkgs-darwin, nixpack }:
@@ -24,7 +25,7 @@
2425
sources = import ./sources.nix {inherit nixpack;};
2526
packages = import ./packages.nix;
2627
compiler = "default";
27-
hoogle = true;
28+
hoogle = false;
2829
isDev = true;
2930
};
3031
} // { inherit nixpack;} ;

packages.nix

Lines changed: 54 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,58 @@ packages =
3030
];
3131

3232
libraries =
33-
with hpkgs;
34-
[ # Streamly packages
35-
fusion-plugin
36-
streamly
37-
streamly-bytestring
38-
streamly-core
39-
streamly-coreutils
40-
streamly-filepath
41-
streamly-fsevents
42-
streamly-process
43-
streamly-statistics
44-
streamly-text
45-
#streamly-examples
46-
47-
# For tests and benchmarks
48-
hspec
49-
tasty-bench
50-
temporary
51-
scientific
52-
];
33+
with nixpkgs.haskellPackages;
34+
35+
let streamly-packages = [
36+
fusion-plugin
37+
streamly-core
38+
streamly
39+
40+
# dependent on streamly
41+
streamly-bytestring
42+
streamly-text
43+
streamly-filepath
44+
45+
streamly-fsevents
46+
streamly-examples
47+
streamly-process
48+
streamly-coreutils
49+
streamly-statistics
50+
];
51+
52+
other-packages = [
53+
# For tests and benchmarks
54+
hspec
55+
tasty-bench
56+
temporary
57+
scientific
58+
];
59+
60+
composewell-packages = [
61+
# dependent on streamly-process
62+
simple-rpc
63+
simple-rpc-generate
64+
65+
packdiff
66+
67+
bench-show
68+
# depends on streamly-coreutils, bench-show
69+
bench-report
70+
71+
# depends on bench-report, on macOS fails with heap-overflow
72+
# streaming-benchmarks
73+
74+
# dependent on streamly-process, streamly-coreutils, packdiff
75+
relcheck
76+
77+
markdown-doctest
78+
# haskell-perf
79+
# streamly-lz4
80+
# streamly-relay
81+
];
82+
83+
in streamly-packages
84+
++ other-packages
85+
++ composewell-packages
86+
;
5387
}

sources.nix

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ with nixpack.sources;
1010
layers = [
1111

1212
{
13-
fusion-plugin = hackage "0.2.7" "sha256-+TuzCAzpTUrlXwldOiHi5ZL92ui7rTVb33iqF7o8xAI=";
13+
#fusion-plugin = hackage "0.2.7" "sha256-+TuzCAzpTUrlXwldOiHi5ZL92ui7rTVb33iqF7o8xAI=";
1414
streamly = hackage "0.11.0" "sha256-JMZAwJHqmDxN/CCDFhfuv77xmAx1JVhvYFDxMKyQoGk=";
1515
streamly-bytestring = hackage "0.2.3" "sha256-ZBV7RO6ibwNKA8S/zr2r31YTQYk4vrP5d7dieTC71hY=";
1616
streamly-core = hackage "0.3.0" "sha256-IOrPT45LfuzU1zs4YXAsrVXYAauIKUwElgB8O7ZMk6Q=";
@@ -21,6 +21,7 @@ layers = [
2121
streamly-statistics = hackage "0.2.0" "sha256-mkr7a3UOCFQqCQl+FRUruPaX4LZtuQt32MW86emnCG4=";
2222
streamly-text = hackage "0.1.0" "sha256-p1gqMDVlqV1PheTzxc2qnh9RanGJLbt3IC4xnwFTlOg=";
2323

24+
unicode-data = hackageProf "0.6.0" "sha256-gW1E5VFwZcUX5v1dvi3INDDqUuwCcOTjCR5+lOW3Obc==";
2425
}
2526

2627
# These are packages that are used to override the above packages in
@@ -29,7 +30,68 @@ layers = [
2930
# with packages on hackage only.
3031

3132
{
32-
streamly-coreutils = composewell "streamly-coreutils" "c42a623ca862df2355533df4dbac0e555f273f23";
33+
# The build flag is unable to reduce the dependencies so we use a
34+
# special branch.
35+
bench-show = composewellBranchFlags "bench-show"
36+
"a8dd27cde3783ef734f179568a2c8789be2489c4"
37+
"no-charts"
38+
[ "--flags no-charts" ];
39+
40+
streaming-benchmarks = composewell "streaming-benchmarks"
41+
"3f24dfc7943faab4c183b88815968f56c36081ec";
42+
43+
streamly = composewell "streamly"
44+
"6a596733e1eb022d8b4134bd2b123cdcd4dc05e8";
45+
46+
streamly-core = composewellSubdir "streamly"
47+
"6a596733e1eb022d8b4134bd2b123cdcd4dc05e8" "/core";
48+
49+
streamly-fsevents = composewell "streamly-fsevents"
50+
"fe2584e9502186090b1aee2671cca4bc14d7ad31";
51+
52+
streamly-text = composewell "streamly-text"
53+
"ec6dd787246fdc93c6b6f935846fe126244b552b";
54+
55+
streamly-lz4 = composewell "streamly-lz4"
56+
"a929c20fb582da95783f84a48dc174204cb8601d";
57+
58+
# ---------------------------------------------------------------
59+
# Pre-release packages
60+
# ---------------------------------------------------------------
61+
62+
bench-report = composewellFlags "bench-report"
63+
"4dad3ea916a950524bcfd5097fc6f0f63e645987"
64+
[ "--flags no-charts" ];
65+
66+
#haskell-perf = composewell "haskell-perf"
67+
# "c9b1357f7bbd7e3e71d30ed66a90beaa5e19ec36";
68+
69+
markdown-doctest = composewell "markdown-doctest"
70+
"05dcf5f03128c49b66cf7c7778f567da1990014c";
71+
72+
packdiff = composewell "packdiff"
73+
"37bef504c07df43cb4745b1ddab5fcbfde8d310b";
74+
75+
relcheck = composewell "relcheck"
76+
"cfd2b83e15d5a583876fff3eec43d01313219cde";
77+
78+
simple-rpc = composewellSubdir "simple-rpc"
79+
"1559b75214e6fde7e10b20889aa1e66c12e641f0" "/rpc";
80+
81+
simple-rpc-generate = composewellSubdir "simple-rpc"
82+
"1559b75214e6fde7e10b20889aa1e66c12e641f0" "/generate";
83+
84+
streamly-coreutils = composewell "streamly-coreutils"
85+
"fa180060c7510c89d2767980ca6f7ec7011d04b9";
86+
87+
#streamly-metrics = composewell "streamly-metrics"
88+
# "6080649563c6764f473e1279508506f91bb20b9f";
89+
90+
streamly-numeric = composewell "streamly-numeric"
91+
"594821f8a725914817fec3a01d842ee17ac951f1";
92+
93+
#streamly-relay = composewell "streamly-relay"
94+
# "f615b7dcf5216bdc0abca4435b7f2e783543767f";
3395
}
3496
];
3597

0 commit comments

Comments
 (0)