Skip to content

Commit

Permalink
Compose haskell package overrides properly
Browse files Browse the repository at this point in the history
  • Loading branch information
vapourismo committed Jan 3, 2022
1 parent 891fbf1 commit 57f3969
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,28 @@
outputs = { self, nixpkgs, flake-utils }: {
overlay = final: prev: {
haskell = prev.haskell // {
packageOverrides = hfinal: hprev: {
simpoole =
hfinal.callCabal2nix "simpoole"
(
final.nix-gitignore.gitignoreSourcePure
[
./.gitignore
"*.nix"
"flake.lock"
"*.yaml"
"cabal.project*"
".vscode"
".github"
"*.md"
]
self
)
{ };
};
packageOverrides =
final.lib.composeExtensions
(prev.haskell.packageOverrides or (_: _: { }))
(hfinal: hprev: {
simpoole =
hfinal.callCabal2nix "simpoole"
(
final.nix-gitignore.gitignoreSourcePure
[
./.gitignore
"*.nix"
"flake.lock"
"*.yaml"
"cabal.project*"
".vscode"
".github"
"*.md"
]
self
)
{ };
});
};
};
} // flake-utils.lib.eachDefaultSystem (system:
Expand Down

0 comments on commit 57f3969

Please sign in to comment.