add nix expressions for building hnix-store-*

This commit is contained in:
Greg Hale 2018-12-28 11:00:31 -05:00
parent 9f98592e79
commit 7bd991a52e
5 changed files with 35 additions and 2 deletions

View File

@ -26,7 +26,7 @@ library
, System.Nix.Path
, System.Nix.Store
, System.Nix.Util
build-depends: base >=4.10 && <4.11
build-depends: base >=4.10 && <4.12
, bytestring
, binary
, bytestring

View File

@ -0,0 +1 @@
(import ../release.nix).hnix-store-core.env

View File

@ -20,7 +20,7 @@ library
, System.Nix.Store.Remote.Types
, System.Nix.Store.Remote.Util
build-depends: base >=4.10 && <4.11
build-depends: base >=4.10 && <4.12
, bytestring
, binary
, bytestring

View File

@ -0,0 +1 @@
(import ../release.nix).hnix-store-remote.env

31
release.nix Normal file
View File

@ -0,0 +1,31 @@
let
# TODO pin nixpkgs
pkgs0 = import <nixpkgs>;
hsOverrides = self: super: {
hnix-store-core = pkgs.haskellPackages.callCabal2nix "hnix-store-core" ./hnix-store-core {};
hnix-store-remote = pkgs.haskellPackages.callCabal2nix "hnix-store-remote" ./hnix-store-remote {};
};
pkgs = pkgs0 {
overlays = [ (self: super: {
haskellPackages = super.haskellPackages.override {
overrides = hsOverrides;
};
}) ];
};
# pkgs = pkgs0.override {
# overrides = self: super: {
# haskellPackages = self.haskellPackages.override {
# overrides = hsOverrides;
# };
# };
# };
in
{
hnix-store-core = pkgs.haskellPackages.hnix-store-core;
hnix-store-remote = pkgs.haskellPackages.hnix-store-remote;
}