add cook-mode
parent
8ecc7da0fd
commit
012d85c8c2
22
flake.nix
22
flake.nix
|
@ -19,19 +19,19 @@
|
||||||
packages = perSystem (system:
|
packages = perSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = pkgsFor system;
|
pkgs = pkgsFor system;
|
||||||
|
genPackage = name: pkgs.callPackage ./packages/${name}.nix { };
|
||||||
|
packages = [ "cookcli" "cook-docs" "cook-mode" ];
|
||||||
in
|
in
|
||||||
rec {
|
pkgs.lib.genAttrs packages genPackage // {
|
||||||
cookcli = pkgs.callPackage ./packages/cookcli.nix { };
|
default = self.packages.${system}.cookcli;
|
||||||
cook-docs = pkgs.callPackage ./packages/cook-docs.nix { };
|
|
||||||
default = cookcli;
|
|
||||||
});
|
});
|
||||||
apps = perSystem (system: rec {
|
apps = perSystem (system: rec {
|
||||||
cookcli = mkApp {
|
cookcli = mkApp {
|
||||||
drv = self.packages.${system}.cookcli;
|
drv = self.packages.${system}.cookcli;
|
||||||
exePath = "/bin/cook";
|
exePath = "/bin/cook";
|
||||||
};
|
};
|
||||||
cook-docs = mkApp { drv = self.packages.${system}.cook-docs; };
|
cook-docs = mkApp { drv = self.packages.${system}.cook-docs; };
|
||||||
default = cookcli;
|
default = cookcli;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ lib
|
||||||
|
, emacsPackages
|
||||||
|
, fetchFromGitHub
|
||||||
|
, emacs
|
||||||
|
}:
|
||||||
|
|
||||||
|
emacsPackages.trivialBuild {
|
||||||
|
pname = "cook-mode";
|
||||||
|
version = "unstable-2022-05-10";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cooklang";
|
||||||
|
repo = "cook-mode";
|
||||||
|
rev = "fac1adacd58db877df0e13108c23e6c415e081cf";
|
||||||
|
sha256 = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ emacs ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Emacs syntax highlighting for Cooklang";
|
||||||
|
homepage = "https://github.com/cooklang/cook-mode";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ MoritzBoehme ];
|
||||||
|
inherit (emacs.meta) platforms;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue