1 # This file defines cabal2nix-unstable, used by maintainers/scripts/haskell/regenerate-hackage-packages.sh.
2 { mkDerivation, aeson, ansi-wl-pprint, base, bytestring, Cabal
3 , containers, deepseq, directory, distribution-nixpkgs, fetchzip
4 , filepath, hackage-db, hopenssl, hpack, language-nix, lens, lib
5 , monad-par, monad-par-extras, mtl, optparse-applicative, pretty
6 , process, split, tasty, tasty-golden, text, time, transformers
11 version = "unstable-2023-11-02";
13 url = "https://github.com/NixOS/cabal2nix/archive/2099a1f4594f621bb1a2879b793b860aefe4c027.tar.gz";
14 sha256 = "11j1lzjanhmdkqwnb7hni3wxiixl7fzxk6d633cn7ybr7b8wra9s";
16 postUnpack = "sourceRoot+=/cabal2nix; echo source root reset to $sourceRoot";
19 libraryHaskellDepends = [
20 aeson ansi-wl-pprint base bytestring Cabal containers deepseq
21 directory distribution-nixpkgs filepath hackage-db hopenssl hpack
22 language-nix lens optparse-applicative pretty process split text
23 time transformers yaml
25 executableHaskellDepends = [
26 aeson base bytestring Cabal containers directory
27 distribution-nixpkgs filepath hopenssl language-nix lens monad-par
28 monad-par-extras mtl optparse-applicative pretty
30 testHaskellDepends = [
31 base Cabal containers directory filepath language-nix lens pretty
32 process tasty tasty-golden
35 export PATH="$PWD/dist/build/cabal2nix:$PATH"
36 export HOME="$TMPDIR/home"
38 homepage = "https://github.com/nixos/cabal2nix#readme";
39 description = "Convert Cabal files into Nix build instructions";
40 license = lib.licenses.bsd3;