Explorar el Código

nix

tags/v0.1.0.0
piq9117 hace 1 año
padre
commit
61f4802714
Se han modificado 4 ficheros con 28 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

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

+ 3
- 0
nix/overlays/aeson.nix Ver fichero

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

+ 8
- 2
shell.nix Ver fichero

@@ -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
];


Cargando…
Cancelar
Guardar