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 {
|
||||
formatter = pkgs.alejandra;
|
||||
checks = {
|
||||
inherit (self.packages.${system}) default;
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
inputsFrom = [] ++ (builtins.attrValues self.checks.${system});
|
||||
packages = with pkgs; [
|
||||
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 = {
|
||||
keepOutputs = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue