5e400b5b24
Add a cabal file and move into subdir. Use MyPrelude & fix a few linter warnings. Change-Id: I19d5ba47be789fc24f8e02ee8721f73c706ae3e9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8465 Reviewed-by: Profpatsch <mail@profpatsch.de> Autosubmit: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
72 lines
1.6 KiB
Nix
72 lines
1.6 KiB
Nix
# generic shell.nix that can be used for most of my projects here,
|
|
# until I figure out a way to have composable shells.
|
|
let root = (import ../../. { }); in
|
|
{ pkgs ? root.third_party.nixpkgs, depot ? root, ... }:
|
|
|
|
pkgs.mkShell {
|
|
buildInputs = [
|
|
pkgs.sqlite-interactive
|
|
pkgs.sqlite-utils
|
|
pkgs.haskell-language-server
|
|
pkgs.cabal-install
|
|
(pkgs.haskellPackages.ghcWithHoogle (h: [
|
|
h.async
|
|
h.aeson-better-errors
|
|
h.conduit-extra
|
|
h.error
|
|
h.PyF
|
|
h.unliftio
|
|
h.wai
|
|
h.warp
|
|
h.profunctors
|
|
h.semigroupoids
|
|
h.validation-selective
|
|
h.free
|
|
h.cryptonite-conduit
|
|
h.sqlite-simple
|
|
h.hedgehog
|
|
h.http-conduit
|
|
h.nonempty-containers
|
|
h.deriving-compat
|
|
h.unix
|
|
h.tagsoup
|
|
h.attoparsec
|
|
h.iCalendar
|
|
h.case-insensitive
|
|
h.hscolour
|
|
h.nicify-lib
|
|
h.hspec-expectations-pretty-diff
|
|
depot.users.Profpatsch.my-prelude
|
|
depot.users.Profpatsch.netencode.netencode-hs
|
|
depot.users.Profpatsch.arglib.netencode.haskell
|
|
depot.users.Profpatsch.execline.exec-helpers-hs
|
|
|
|
]))
|
|
|
|
pkgs.rustup
|
|
pkgs.pkg-config
|
|
pkgs.fuse
|
|
];
|
|
|
|
|
|
RUSTC_WRAPPER =
|
|
let
|
|
wrapperArgFile = libs: pkgs.writeText "rustc-wrapper-args"
|
|
(pkgs.lib.concatStringsSep
|
|
"\n"
|
|
(pkgs.lib.concatLists
|
|
(map
|
|
(lib: [
|
|
"-L"
|
|
"${pkgs.lib.getLib lib}/lib"
|
|
])
|
|
libs)));
|
|
in
|
|
depot.nix.writeExecline "rustc-wrapper" { readNArgs = 1; } [
|
|
"$1"
|
|
"$@"
|
|
"@${wrapperArgFile [
|
|
depot.third_party.rust-crates.nom
|
|
]}"
|
|
];
|
|
}
|