timecodeg/default.nix

33 lines
764 B
Nix

let
compilerVersion = "ghc8107";
compilerSet = pkgs.haskell.packages."${compilerVersion}";
pkgs = import <nixpkgs> { inherit config; };
gitIgnore = pkgs.nix-gitignore.gitignoreSourcePure;
config = {
packageOverrides = super: let self = super.pkgs; in rec {
haskell = super.haskell // {
packageOverrides = self: super: {
timecode-generator = super.callCabal2nix "timecode-generator" (gitIgnore [./.gitignore] ./.) {};
};
};
};
};
in {
inherit pkgs;
shell = compilerSet.shellFor {
packages = p: [p.timecode-generator];
buildInputs = with pkgs; [
compilerSet.cabal-install
haskellPackages.tagsoup
haskellPackages.HTTP
haskellPackages.zlib
zlib
];
};
}