mirror of
https://github.com/infinisil/all-hies.git
synced 2024-11-22 13:02:26 +03:00
Add .cabal file; better, hopefully purer shell.nix
This commit is contained in:
parent
b5fb7e31fb
commit
ca5de24eac
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
result*
|
||||
dist
|
||||
|
23
all-hies.cabal
Normal file
23
all-hies.cabal
Normal file
@ -0,0 +1,23 @@
|
||||
cabal-version: 2.4
|
||||
name: all-hies
|
||||
version: 0.1.0.0
|
||||
author: Silvan Mosberger
|
||||
maintainer: infinisil@icloud.com
|
||||
|
||||
executable update
|
||||
main-is: update.hs
|
||||
build-depends: base ^>=4.12.0.0
|
||||
, haskeline
|
||||
, process
|
||||
, regex-applicative
|
||||
, directory
|
||||
, filepath
|
||||
, stack2nix
|
||||
, http-client
|
||||
, http-client-tls
|
||||
, time
|
||||
, aeson
|
||||
, mtl
|
||||
, bytestring
|
||||
, Cabal
|
||||
default-language: Haskell2010
|
28
shell.nix
28
shell.nix
@ -1,25 +1,9 @@
|
||||
{ pkgs ? import ./nixpkgs.nix
|
||||
}:
|
||||
|
||||
let
|
||||
ghcWithPkgs = pkgs.haskellPackages.ghcWithPackages (p: with p; [
|
||||
directory
|
||||
filepath
|
||||
process
|
||||
http-client
|
||||
http-client-tls
|
||||
aeson
|
||||
regex-applicative
|
||||
haskeline
|
||||
stack2nix
|
||||
cabal-install
|
||||
]);
|
||||
in
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
ghcWithPkgs
|
||||
git
|
||||
nix-prefetch-scripts
|
||||
(pkgs.haskellPackages.callCabal2nix "all-hies" ./. {}).env.overrideAttrs (old: {
|
||||
nativeBuildInputs = old.nativeBuildInputs or [] ++ [
|
||||
pkgs.nix-prefetch-scripts
|
||||
pkgs.git
|
||||
pkgs.haskellPackages.cabal-install
|
||||
];
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user