From 2b311bdc1a9a75e1d03ca15e92358061c9bf53a9 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 7 Nov 2022 12:04:27 +0000 Subject: [PATCH] timing-convenience: init at 0.1 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/timing-convenience.nix | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 pkgs/timing-convenience.nix diff --git a/manifest.dhall b/manifest.dhall index 30bcb1a8..76aeeb51 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -740,6 +740,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "th-orphans" "0.13.14" , callHackage "th-reify-many" "0.1.10" , callHackage "tidal" "1.8.1" + , callHackage "timing-convenience" "0.1" , callHackage "timeit" "2.0" , callHackage "time-compat" "1.9.6.1" , callCabal2nix diff --git a/overlay.nix b/overlay.nix index 58df2d07..eaf00cb0 100644 --- a/overlay.nix +++ b/overlay.nix @@ -1139,6 +1139,8 @@ self: with pkgs.haskell.lib; { timeit = self.callPackage (./pkgs/timeit.nix) { }; + timing-convenience = self.callPackage (./pkgs/timing-convenience.nix) { }; + tls = self.callPackage (./pkgs/tls.nix) { }; tls-session-manager = self.callPackage (./pkgs/tls-session-manager.nix) { }; diff --git a/pkgs/timing-convenience.nix b/pkgs/timing-convenience.nix new file mode 100644 index 00000000..dec4bdef --- /dev/null +++ b/pkgs/timing-convenience.nix @@ -0,0 +1,20 @@ +{ mkDerivation, base, lib, time }: +mkDerivation { + pname = "timing-convenience"; + version = "0.1"; + sha256 = "72200ea2c942bfb4ac4c5ae53222353ac3af0c40058f4a9179c99df5ff33171d"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base time ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Convenient functions for getting times"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab