commit df15a232c8a8295a25b0eaebb966f2a0b1567411 Author: lwad Date: Fri Mar 1 13:22:51 2024 +0000 chore: Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2879718 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/example.md +/result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ac7d943 --- /dev/null +++ b/flake.lock @@ -0,0 +1,24 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1709218635, + "narHash": "sha256-nytX/MkfqeTD4z7bMq4QRXcHxO9B3vRo9tM6fMtPFA8=", + "path": "/nix/store/azqs26b5xv7m4h00iqyhgdwbn12vqbvp-source", + "rev": "068d4db604958d05d0b46c47f79b507d84dbc069", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e9912de --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "An interactive, terminal-based markdown presenter "; + inputs.nixpkgs.url = "nixpkgs"; + outputs = { self, nixpkgs }: { + packages = nixpkgs.lib.mapAttrs (system: pkgs: { + default = with pkgs.python311Packages; + buildPythonPackage rec { + pname = "lookatme"; + version = "2.5.5"; + pyproject = true; + + src = fetchPypi { + inherit pname; + inherit version; + hash = "sha256-blmBPNa9xp6C3Xp5uyrBroKInpNDxJnWuxj3eoUkLes="; + }; + + propagatedBuildInputs = + [ click marshmallow mistune pygments pyyaml urwid ]; + + nativeBuildInputs = [ setuptools ]; + }; + }) nixpkgs.legacyPackages; + }; +}