Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .packcheck.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
.github/workflows/packcheck.yml
.gitignore
cabal.project.Werror
flake.lock
flake.nix
packages.nix
sources.nix
88 changes: 88 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
description = "streamly-text";

inputs = {
#composewell-haskell.url = "git+ssh://[email protected]/composewell/streamly-packages?rev=0479fcff715c7b92f0a917b4cffd25371716b4f4";
composewell-haskell.url = "git+ssh://[email protected]/composewell/streamly-packages?ref=master";
nixpkgs.follows = "composewell-haskell/nixpkgs";
nixpkgs-darwin.follows = "composewell-haskell/nixpkgs-darwin";
};

outputs = { self, nixpkgs, nixpkgs-darwin, composewell-haskell }:
let
nixpack = composewell-haskell.nixpack;
src1 = import "${composewell-haskell}/sources.nix" { inherit nixpack; };
src2 = import ./sources.nix {inherit nixpack;};
in nixpack.flakeOutputs {
inherit nixpkgs;
inherit nixpkgs-darwin;
inherit nixpack;
nixpkgsOptions = {
config.allowUnfree = true;
config.allowBroken = true;
};
envOptions = {
name = "streamly-text-env";
sources = nixpack.lib.mergeSources src1 src2;
packages = import ./packages.nix;
compiler = "default";
hoogle = false;
isDev = true;
};
};
}
14 changes: 14 additions & 0 deletions packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ nixpkgs }:
{
dev-packages =
with nixpkgs.haskellPackages;
[ streamly-text
];
libraries =
with nixpkgs.haskellPackages;
[
temporary
quickcheck-instances
hspec
];
}
9 changes: 9 additions & 0 deletions sources.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{nixpack}:
with nixpack.sources;
{
layers = [
{
streamly-text = local ./.;
}
];
}