From 6034d0eddfad85be2df8568e6e6a9a1cb88d2420 Mon Sep 17 00:00:00 2001 From: twoneis Date: Tue, 31 Oct 2023 21:43:53 +0100 Subject: [PATCH] added flake for markdown --- markdown/flake.lock | 27 +++++++++++++++++++++++++++ markdown/flake.nix | 26 +++++++++++++++++++------- 2 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 markdown/flake.lock diff --git a/markdown/flake.lock b/markdown/flake.lock new file mode 100644 index 0000000..2342310 --- /dev/null +++ b/markdown/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1698611440, + "narHash": "sha256-jPjHjrerhYDy3q9+s5EAsuhyhuknNfowY6yt6pjn9pc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "0cbe9f69c234a7700596e943bfae7ef27a31b735", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/markdown/flake.nix b/markdown/flake.nix index a96aa14..43660ea 100644 --- a/markdown/flake.nix +++ b/markdown/flake.nix @@ -1,11 +1,23 @@ { - description = "A very basic flake"; - - outputs = { self, nixpkgs }: { - - packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello; - - packages.x86_64-linux.default = self.packages.x86_64-linux.hello; + description = "A template flake for development with gcc"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; + + outputs = { self, nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + }; + in { + devShell.x86_64-linux = pkgs.mkShell rec { + name = "markdown"; + packages = with pkgs; [ + marksman + ]; + shellHook = ''export PS1="[\u@gcc-devel:\W]\$ "''; + }; + }; }