add package for cxx template
This commit is contained in:
parent
3614b353bb
commit
03636438a0
1 changed files with 23 additions and 3 deletions
|
|
@ -18,14 +18,34 @@
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
|
checks = {
|
||||||
|
inherit (self.packages.${system}) default;
|
||||||
|
};
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
|
inputsFrom = [] ++ (builtins.attrValues self.checks.${system});
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
clang-tools
|
clang-tools
|
||||||
|
|
||||||
gcc
|
|
||||||
xmake
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
packages = rec {
|
||||||
|
cxx-demo = pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "cxx-demo";
|
||||||
|
version = "unstable";
|
||||||
|
src = ./.;
|
||||||
|
strictDeps = true;
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
xmake
|
||||||
|
gnumake
|
||||||
|
];
|
||||||
|
preConfigure = ''
|
||||||
|
xmake project -k xmakefile
|
||||||
|
'';
|
||||||
|
env = {
|
||||||
|
INSTALLDIR = "${placeholder "out"}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
default = cxx-demo;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
keepOutputs = true;
|
keepOutputs = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue