From b44d1e37c130076cca0d5649202cda764419e052 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Wed, 12 Jan 2022 02:29:01 -0300 Subject: [PATCH] md-tangle: init at 1.3.1 --- .../md-tangle/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/tools/literate-programming/md-tangle/default.nix diff --git a/pkgs/development/tools/literate-programming/md-tangle/default.nix b/pkgs/development/tools/literate-programming/md-tangle/default.nix new file mode 100644 index 000000000000..fd895c96c047 --- /dev/null +++ b/pkgs/development/tools/literate-programming/md-tangle/default.nix @@ -0,0 +1,28 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonPackage rec { + pname = "md-tangle"; + version = "1.3.1"; + + # By some strange reason, fetchPypi fails miserably + src = fetchFromGitHub { + owner = "joakimmj"; + repo = pname; + rev = "v${version}"; + hash = "sha256-cUME2AHK/Fva+1TSTE6hNu0SE/V1FOwcSxWF0+iZhS4="; + }; + + # Pure Python application, uses only standard modules and comes without + # testing suite + doCheck = false; + + meta = with lib;{ + homepage = "https://github.com/joakimmj/md-tangle/"; + description = "Generates (\"tangles\") source code from Markdown documents"; + license = licenses.mit; + maintainers = with maintainers; [ AndersonTorres ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5d36aacab6da..52cf0aaf4931 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14668,6 +14668,8 @@ with pkgs; Literate = callPackage ../development/tools/literate-programming/Literate { }; + md-tangle = callPackage ../development/tools/literate-programming/md-tangle { }; + # NOTE: Override and set useIcon = false to use Awk instead of Icon. noweb = callPackage ../development/tools/literate-programming/noweb { };