瀏覽代碼

nix

tags/v0.1.0.0
piq9117 8 月之前
父節點
當前提交
61f4802714
共有 4 個檔案被更改,包括 28 行新增2 行删除
  1. +15
    -0
      default.nix
  2. +2
    -0
      nix/overlays.nix
  3. +3
    -0
      nix/overlays/aeson.nix
  4. +8
    -2
      shell.nix

+ 15
- 0
default.nix 查看文件

@@ -0,0 +1,15 @@
{ mkDerivation, aeson, base, bytestring, ghc-prim, http-client
, http-conduit, http-types, lib, mtl, scientific, text, time
, transformers, unordered-containers, vector
}:
mkDerivation {
pname = "launchdarklyapi";
version = "0.1.0.0";
src = ./.;
libraryHaskellDepends = [
aeson base bytestring ghc-prim http-client http-conduit http-types
mtl scientific text time transformers unordered-containers vector
];
license = "unknown";
hydraPlatforms = lib.platforms.none;
}

+ 2
- 0
nix/overlays.nix 查看文件

@@ -0,0 +1,2 @@
[ (import ./overlays/aeson.nix)
]

+ 3
- 0
nix/overlays/aeson.nix 查看文件

@@ -0,0 +1,3 @@
self: super: rec {
aeson = super.haskell.lib.dontCheck (self.callHackage "aeson" "1.5.6.0" {});
}

+ 8
- 2
shell.nix 查看文件

@@ -1,9 +1,15 @@
let
pkgs = import <nixpkgs> {};
pkgs = import <nixpkgs> { overlays = (import ./nix/overlays.nix); };
# haskellPackages = pkgs.haskellPackage.override {
# overrides = self: super: rec {
# aeson = pkgs.haskell.lib.dontCheck (self.callHackage "aeson" "1.5.6.0" {});
# };
# };
project = pkgs.haskellPackages.callPackage ./default.nix {};
in
pkgs.mkShell {
name = "launchdarklyapi";
buildInputs = with pkgs; [
buildInputs = with pkgs; project.env.nativeBuildInputs ++ [
cabal-install
ghc
];


Loading…
取消
儲存