{ nixpkgs ? import {}, compiler ? "default", doBenchmark ? false }: let inherit (nixpkgs) pkgs; f = { mkDerivation, async, base, bytestring, containers, dbus , gi-gtk, gi-gtk-hs, gtk3, req, stdenv, stm, tagsoup, text }: mkDerivation { pname = "musicScroll"; version = "0.1.0.0"; src = ./.; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; libraryHaskellDepends = [ async base bytestring containers dbus gi-gtk gi-gtk-hs req stm tagsoup text ]; executableHaskellDepends = [ base ]; executablePkgconfigDepends = [ gtk3 ]; license = stdenv.lib.licenses.gpl3; }; haskellPackages = if compiler == "default" then pkgs.haskellPackages else pkgs.haskell.packages.${compiler}; variant = if doBenchmark then pkgs.haskell.lib.doBenchmark else pkgs.lib.id; drv = variant (haskellPackages.callPackage f { gtk3 = nixpkgs.gtk3; }); in if pkgs.lib.inNixShell then drv.env else drv