feat: +qmd

This commit is contained in:
m3tm3re
2026-03-02 19:46:10 +01:00
parent be401c2ebb
commit 6a39694047
3 changed files with 73 additions and 12 deletions

57
flake.lock generated
View File

@@ -1,5 +1,23 @@
{ {
"nodes": { "nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1772198003, "lastModified": 1772198003,
@@ -73,12 +91,49 @@
"type": "github" "type": "github"
} }
}, },
"qmd": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1772104549,
"narHash": "sha256-IR5lIQU+hFKyZdF5BvZHAQbkVV+Yrde6bQ/2nyJARRk=",
"owner": "tobi",
"repo": "qmd",
"rev": "40610c3aa65d9d399ebb188a7e4930f6628ae51c",
"type": "github"
},
"original": {
"owner": "tobi",
"repo": "qmd",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-master": "nixpkgs-master", "nixpkgs-master": "nixpkgs-master",
"opencode": "opencode", "opencode": "opencode",
"openspec": "openspec" "openspec": "openspec",
"qmd": "qmd"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
} }
} }
}, },

View File

@@ -16,6 +16,11 @@
url = "github:Fission-AI/OpenSpec"; url = "github:Fission-AI/OpenSpec";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
qmd = {
url = "github:tobi/qmd";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
@@ -94,17 +99,17 @@
formatter = forAllSystems (system: (pkgsFor system).alejandra); formatter = forAllSystems (system: (pkgsFor system).alejandra);
# Checks for 'nix flake check' - verifies all packages build # Checks for 'nix flake check' - verifies all packages build
checks = forAllSystems (system: let # checks = forAllSystems (system: let
pkgs = pkgsFor system; # pkgs = pkgsFor system;
packages = import ./pkgs {inherit pkgs inputs;}; # packages = import ./pkgs {inherit pkgs inputs;};
in # in
builtins.mapAttrs (name: pkg: pkgs.lib.hydraJob pkg) packages # builtins.mapAttrs (name: pkg: pkgs.lib.hydraJob pkg) packages
// { # // {
formatting = pkgs.runCommand "check-formatting" {} '' # formatting = pkgs.runCommand "check-formatting" {} ''
${pkgs.alejandra}/bin/alejandra --check ${./.} # ${pkgs.alejandra}/bin/alejandra --check ${./.}
touch $out # touch $out
''; # '';
}); # });
# Templates for creating new packages/modules # Templates for creating new packages/modules
templates = { templates = {

View File

@@ -25,4 +25,5 @@
opencode = inputs.opencode.packages.${pkgs.system}.opencode; opencode = inputs.opencode.packages.${pkgs.system}.opencode;
opencode-desktop = pkgs.callPackage ./opencode-desktop {inherit inputs;}; opencode-desktop = pkgs.callPackage ./opencode-desktop {inherit inputs;};
openspec = inputs.openspec.packages.${pkgs.system}.default; openspec = inputs.openspec.packages.${pkgs.system}.default;
qmd = inputs.qmd.packages.${pkgs.system}.default;
} }