added flake for markdown

This commit is contained in:
twoneis 2023-10-31 21:43:53 +01:00
parent 9c36ab81ca
commit 6034d0eddf
2 changed files with 46 additions and 7 deletions

27
markdown/flake.lock generated Normal file
View file

@ -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
}

View file

@ -1,11 +1,23 @@
{
description = "A very basic flake";
description = "A template flake for development with gcc";
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;
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]\$ "'';
};
};
}