Skip to content

Commit

Permalink
Update nix
Browse files Browse the repository at this point in the history
  • Loading branch information
berberman committed Jun 8, 2023
1 parent b667dcb commit 6126ef9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

23 changes: 14 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,30 @@
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ self.overlay ];
config = { allowBroken = true; };
overlays = [ self.overlays.default ];
};
in with pkgs; {
overlay = self: super:
overlays.default = final: prev:
let
hpkgs = super.haskellPackages.override{
overrides = hself: hsuper:{
arch-web = with super.haskell.lib; disableLibraryProfiling (dontCheck hsuper.arch-web);
hpkgs = prev.haskellPackages.override {
overrides = hself: hsuper: {
arch-web = prev.haskell.lib.dontCheck
(hself.callCabal2nix "arch-web" (builtins.fetchTarball {
url =
"https://hackage.haskell.org/package/arch-web-0.2/arch-web-0.2.tar.gz";
sha256 =
"0306ky9a4rfc4lz838kykl91br6s7sm9dkp446425g3yjh6x26zl";
}) { });
};
};
arch-hs = hpkgs.callCabal2nix "arch-hs" ./. { };
in with super;
in with final;
with haskell.lib; {
inherit arch-hs;
arch-hs-dev =
addBuildTools arch-hs [ cabal-install haskell-language-server ];
};
defaultPackage.x86_64-linux = arch-hs;
devShell.x86_64-linux = arch-hs-dev.envFunc { };
packages.x86_64-linux.default = arch-hs;
devShells.x86_64-linux.default = arch-hs-dev.envFunc { };
};
}

0 comments on commit 6126ef9

Please sign in to comment.