Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hakujin
Created March 15, 2019 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakujin/345776ae70923f239bdc62f42ec553a5 to your computer and use it in GitHub Desktop.
Save hakujin/345776ae70923f239bdc62f42ec553a5 to your computer and use it in GitHub Desktop.
{ system ? builtins.currentSystem
, compiler ? "ghc863" # https://github.com/NixOS/nixpkgs/tree/master/pkgs/top-level/haskell-packages.nix
}:
let
pkgs = import ./.nix/pinned-nixpkgs.nix {
inherit system;
config = {
allowUnfree = true;
packageOverrides = pkgs: rec {
haskellPackages = pkgs.haskell.packages."${compiler}".override {
overrides = self: super: with pkgs.haskell.lib; rec {
};
};
};
};
};
libical = pkgs.libical.overrideAttrs (old: {
outputs = [
"out"
"dev"
];
doInstallCheck = false;
cmakeFlags = [
"-DICAL_GLIB=False"
"-DICAL_GLIB_VAPI=False"
"-DICAL_BUILD_DOCS=False"
"-DENABLE_GTK_DOC=False"
"-DWITH_CXX_BINDINGS=False"
];
nativeBuildInputs = with pkgs; [
perl
cmake
];
});
in
(import ./release.nix {}).build.env.overrideAttrs (old: {
buildInputs = (old.buildInputs or []) ++ [ libical.dev ];
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment