[M7] generated flake.nix moves to build/flake.nix
This commit is contained in:
12
flake.nix
12
flake.nix
@@ -10,7 +10,19 @@
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
cargoxx = pkgs.gcc15Stdenv.mkDerivation {
|
||||
# Fill rules here
|
||||
};
|
||||
buildCppPackage = attrs: pkgs.gcc15Stdenv.mkDerivation {
|
||||
pname = attrs.pname;
|
||||
version = attrs.version;
|
||||
buildPhase = ''
|
||||
cargoxx build
|
||||
'';
|
||||
};
|
||||
in {
|
||||
lib.buildCppPackage = buildCppPackage;
|
||||
package = cargoxx;
|
||||
devShell = pkgs.gcc15Stdenv.mkDerivation {
|
||||
name = "shell";
|
||||
version = "1.0";
|
||||
|
||||
Reference in New Issue
Block a user