mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-27 18:45:57 +03:00
add nix expressions for building hnix-store-*
This commit is contained in:
parent
9f98592e79
commit
7bd991a52e
@ -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
|
||||
|
1
hnix-store-core/shell.nix
Normal file
1
hnix-store-core/shell.nix
Normal file
@ -0,0 +1 @@
|
||||
(import ../release.nix).hnix-store-core.env
|
@ -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
|
||||
|
1
hnix-store-remote/shell.nix
Normal file
1
hnix-store-remote/shell.nix
Normal file
@ -0,0 +1 @@
|
||||
(import ../release.nix).hnix-store-remote.env
|
31
release.nix
Normal file
31
release.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user