add aeson dep

haskellify
Brian Hicks 2019-09-08 05:51:19 -05:00
parent 464def86d3
commit fc7b7158a4
5 changed files with 8 additions and 6 deletions

View File

@ -1,2 +0,0 @@
{ nixpkgs ? import <nixpkgs> { }, compiler ? "ghc865" }:
nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./elm-swapper.nix { }

View File

@ -60,7 +60,8 @@ executable elm-swapper
-- Other library packages from which modules are imported.
build-depends: base ^>=4.12.0.0,
directory ^>=1.3.3.0,
filepath ^>=1.4.2.1
filepath ^>=1.4.2.1,
aeson
-- Directories containing source files.
hs-source-dirs: src

View File

@ -1,11 +1,11 @@
{ mkDerivation, base, directory, filepath, stdenv }:
{ mkDerivation, aeson, base, directory, filepath, stdenv }:
mkDerivation {
pname = "elm-swapper";
version = "0.1.0.0";
src = ./.;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ base directory filepath ];
executableHaskellDepends = [ aeson base directory filepath ];
description = "automatically dispatch to the right version of Elm";
license = "unknown";
hydraPlatforms = stdenv.lib.platforms.none;

3
release.nix Normal file
View File

@ -0,0 +1,3 @@
{ compiler ? "ghc865" }:
let pkgs = import <nixpkgs> { };
in { elm-swapper = pkgs.haskell.packages.${compiler}.callPackage ./elm-swapper.nix { }; }

View File

@ -1,4 +1,4 @@
{ nixpkgs ? import <nixpkgs> { }, compiler ? "ghc865" }:
(import ./default.nix { inherit nixpkgs compiler; }).env.overrideAttrs (attrs: {
(import ./release.nix { inherit compiler; }).elm-swapper.env.overrideAttrs (attrs: {
buildInputs = attrs.buildInputs ++ [ nixpkgs.git nixpkgs.elmPackages.elm nixpkgs.cabal2nix nixpkgs.cabal-install ];
})