add a target to rebuild elm-swapper.nix

haskellify
Brian Hicks 2019-09-07 14:51:59 -05:00
parent 6bb6ee6cf4
commit 357780b367
2 changed files with 3 additions and 1 deletions

2
Makefile Normal file
View File

@ -0,0 +1,2 @@
elm-swapper.nix: elm-swapper.cabal
cabal2nix . > $@

View File

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