Skip to content

Commit

Permalink
alnost as if this project haven't been maintained for a while
Browse files Browse the repository at this point in the history
supki committed Jun 13, 2022
1 parent de5944f commit 31a95a3
Showing 6 changed files with 10 additions and 38 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist/
.stack-work/
stack.yaml.lock
codex.tags
.gitignore
2 changes: 0 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
envparse
========
[![Hackage](https://budueba.com/hackage/envparse)](https://hackage.haskell.org/package/envparse)
[![Build Status](https://secure.travis-ci.org/supki/envparse.png?branch=master)](https://travis-ci.org/supki/envparse)

[optparse-applicative][0], but for environment variables

2 changes: 0 additions & 2 deletions default.nix

This file was deleted.

11 changes: 0 additions & 11 deletions package.nix

This file was deleted.

30 changes: 8 additions & 22 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc802" }: let
inherit (nixpkgs) pkgs;
haskell = pkgs.haskell.packages.${compiler};
{ pkgs ? import <nixpkgs> {}
, ghc ? pkgs.haskell.compiler.ghc8107
}:

ghc = haskell.ghcWithPackages(ps: [
ps.hdevtools ps.doctest ps.hspec-discover ps.hlint ps.ghc-mod
]);

this = (import ./default.nix { inherit nixpkgs compiler; });
in
pkgs.stdenv.mkDerivation rec {
name = this.pname;
buildInputs = [
ghc
haskell.cabal-install

pkgs.moreutils
] ++ this.env.buildInputs;
shellHook = ''
${this.env.shellHook}
chronic cabal configure --package-db=$NIX_GHC_LIBDIR/package.conf.d --enable-tests
'';
}
pkgs.mkShell rec {
buildInputs = with pkgs; [
ghc
];
}
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-12.4
resolver: lts-18.28
packages:
- '.'
allow-newer: true

0 comments on commit 31a95a3

Please sign in to comment.