api.rauhala.info/release.nix

30 lines
738 B
Nix
Raw Normal View History

2018-09-24 23:36:26 +03:00
{ pkgs ? import <nixpkgs> {} }:
let
_pkgs = import (pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "234a24cbeb66f70afaab9f13a5a9973c2fb956e0"; # LTS 12.10
sha256 = "1n0n6dwyllkddl4nxjhkr1cq7mpk786dsr6v36589c7flj8inbwf";
}) {};
inherit (_pkgs) haskellPackages haskell buildEnv;
pkg = import ./default.nix { inherit haskellPackages haskell; };
shell = buildEnv {
name = "shell";
paths = [];
buildInputs = [
_pkgs.binutils-unwrapped
haskellPackages.ghcid
haskellPackages.hasktags
haskellPackages.cabal-install
2018-09-24 23:36:26 +03:00
(haskellPackages.ghcWithHoogle (_: pkg.buildInputs ++ pkg.propagatedBuildInputs))
];
};
in
{
"rauhala-api" = pkg;
"shell" = shell;
}