about summary refs log tree commit diff stats
path: root/markdown/flake.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-06-18 16:21:09 +0200
committerSoispha <soispha@vhack.eu>2023-06-18 16:21:09 +0200
commit0d16fc8e5bfd0ea5988603f57ba90fb510fbcfd0 (patch)
treebbeaae3f80e5713ba380fb26ab0c00d0b6b16c7a /markdown/flake.nix
parentchore(version): v0.1.1 (diff)
downloadflake-templates-0d16fc8e5bfd0ea5988603f57ba90fb510fbcfd0.tar.gz
flake-templates-0d16fc8e5bfd0ea5988603f57ba90fb510fbcfd0.zip
Feat(markdown): Init
Diffstat (limited to 'markdown/flake.nix')
-rw-r--r--markdown/flake.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/markdown/flake.nix b/markdown/flake.nix
new file mode 100644
index 0000000..c386e41
--- /dev/null
+++ b/markdown/flake.nix
@@ -0,0 +1,60 @@
+{
+  description = ""; # TODO
+
+  inputs = {
+    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+    systems = {
+      url = "github:nix-systems/x86_64-linux"; # only evaluate for this system
+    };
+    flake-utils = {
+      url = "github:numtide/flake-utils";
+      inputs = {
+        systems.follows = "systems";
+      };
+    };
+    flake_version_update = {
+      url = "git+https://codeberg.org/soispha/flake_version_update.git";
+      inputs = {
+        systems.follows = "systems";
+        nixpkgs.follows = "nixpkgs";
+        flake-utils.follows = "flake-utils";
+      };
+    };
+  };
+
+  outputs = {
+    self,
+    nixpkgs,
+    flake-utils,
+    flake_version_update,
+    ...
+  }:
+    flake-utils.lib.eachDefaultSystem (system: let
+      pkgs = nixpkgs.legacyPackages.${system};
+
+      # This version is set automatically on `cog bump --auto`;
+      version = "v1.0.0"; # GUIDING VERSION STRING
+    in {
+      packages.default = pkgs.stdenv.mkDerivation {
+        pname = ""; # TODO
+        inherit version;
+        src = ./.;
+
+        installPhase = ''
+          install -D $scr/scr/*.md $out/;
+        '';
+      };
+      devShells.default = pkgs.mkShell {
+        packages = with pkgs; [
+          nil
+          alejandra
+          statix
+          ltex-ls
+          cocogitto
+          flake_version_update.packages."${system}".default
+        ];
+      };
+    });
+}
+# vim: ts=2
+