X-Git-Url: https://git.rkrishnan.org/?a=blobdiff_plain;f=shell.nix;h=b3b0789721d813912c9894c84dce52dee8f07353;hb=ebda66bc8731a77d63ec63635473a717bc434885;hp=cf892c6a0f9de8605c6b054a9def68e6ba8f40c2;hpb=9f33438f3aebd21b9ae5d4775b2e90776e7250f7;p=functorrent.git diff --git a/shell.nix b/shell.nix index cf892c6..b3b0789 100644 --- a/shell.nix +++ b/shell.nix @@ -1,22 +1,12 @@ -# This file was auto-generated by cabal2nix. Please do NOT edit manually! - -{ haskellPackages ? (import {}).haskellPackages }: - -with haskellPackages; cabal.mkDerivation (self: { - pname = "functorrent"; - version = "0.1.0.0"; - src = "./."; - isLibrary = true; - isExecutable = true; - buildTools = [ cabalInstall ]; - buildDepends = [ - base16Bytestring binary cryptohash HTTP networkUri parsec tasty - tastyHunit +let pkgs = (import {}); + haskellPackages = pkgs.recurseIntoAttrs (pkgs.haskellPackages.override { + extension = self : super : + let callPackage = self.callPackage; + in { + thisPackage = haskellPackages.callPackage (import ./default.nix) {}; + };}); +in pkgs.lib.overrideDerivation haskellPackages.thisPackage (old: { + buildInputs = old.buildInputs ++ [ + haskellPackages.cabalInstall ]; - testDepends = [ doctest hlint tasty tastyHunit ]; - meta = { - description = "A Bit-torrent client"; - license = self.stdenv.lib.licenses.gpl3; - platforms = self.ghc.meta.platforms; - }; })