From 21125b268201d0face888ff816e574dda8d806b8 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 3 Mar 2020 18:57:31 +0800 Subject: [PATCH] mahlzeit: add 0.1.0 --- configs/sterni/packages.nix | 1 + pkgs/default.nix | 4 ++++ pkgs/mahlzeit/default.nix | 41 +++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 pkgs/mahlzeit/default.nix diff --git a/configs/sterni/packages.nix b/configs/sterni/packages.nix index ae0be38..7e9fb00 100644 --- a/configs/sterni/packages.nix +++ b/configs/sterni/packages.nix @@ -7,6 +7,7 @@ in { #unstable.sonic-visualiser sononym-crawler darktable + haskellPackages.mahlzeit ]; } diff --git a/pkgs/default.nix b/pkgs/default.nix index ac7faec..cb6f3ec 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -20,6 +20,10 @@ in { }); }; + haskellPackages = super.haskellPackages.override { + overrides = self: super: { mahlzeit = super.callPackage ./mahlzeit { }; }; + }; + gitlog2json = callPackage ./gitlog2json { }; bitwig-studio3 = callPackage ./bitwig-studio/bitwig-studio3.nix { }; diff --git a/pkgs/mahlzeit/default.nix b/pkgs/mahlzeit/default.nix new file mode 100644 index 0000000..6839ba9 --- /dev/null +++ b/pkgs/mahlzeit/default.nix @@ -0,0 +1,41 @@ +{ mkDerivation, ansi-terminal, base, directory, doctest, fetchgit, filepath +, megaparsec, optparse-applicative, prettyprinter, process, raw-strings-qq +, stdenv, tasty, tasty-hunit, text, yaml }: +mkDerivation { + pname = "mahlzeit"; + version = "0.1.0"; + src = fetchgit { + url = "https://github.com/kmein/mahlzeit"; + sha256 = "1k8690x7jnvr9ya2b9biv75wpzy15bn03in6af4bspzihi8w4fyl"; + rev = "ea4769ad691de3c6b5b5c161b502a648b663efce"; + fetchSubmodules = true; + }; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + ansi-terminal + base + directory + filepath + megaparsec + prettyprinter + text + yaml + ]; + executableHaskellDepends = [ + ansi-terminal + base + directory + filepath + optparse-applicative + process + text + yaml + ]; + testHaskellDepends = + [ base doctest megaparsec raw-strings-qq tasty tasty-hunit ]; + doCheck = false; + homepage = "https://github.com/kmein/mahlzeit"; + description = "Recipe toolkit"; + license = stdenv.lib.licenses.mit; +}