diff --git a/pkgs/applications/office/hledger-irr/default.nix b/pkgs/applications/office/hledger-irr/default.nix new file mode 100644 index 000000000000..1f4dd165c50e --- /dev/null +++ b/pkgs/applications/office/hledger-irr/default.nix @@ -0,0 +1,16 @@ +{ cabal, Cabal, hledgerLib, statistics, time }: + +cabal.mkDerivation (self: { + pname = "hledger-irr"; + version = "0.1.1.2"; + sha256 = "1mh1lzhnxc8ps8n5j37wrmbqafwdyap60j8rqr6xdfa2syfyq8i2"; + isLibrary = false; + isExecutable = true; + buildDepends = [ Cabal hledgerLib statistics time ]; + meta = { + description = "computes the internal rate of return of an investment"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ self.stdenv.lib.maintainers.simons ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 5c443f22d1c0..411f735dbe8b 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1164,6 +1164,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); hledger = callPackage ../development/libraries/haskell/hledger {}; hledgerLib = callPackage ../development/libraries/haskell/hledger-lib {}; hledgerInterest = callPackage ../applications/office/hledger-interest {}; + hledgerIrr = callPackage ../applications/office/hledger-irr {}; hledgerWeb = callPackage ../development/libraries/haskell/hledger-web {}; HList = callPackage ../development/libraries/haskell/HList {};