make a simple c++ project

This commit is contained in:
jopejoe1 2024-07-05 12:33:15 +02:00
parent 2757bd090c
commit 2d15d63dcb
8 changed files with 80 additions and 30 deletions

5
nix/default.nix Normal file
View file

@ -0,0 +1,5 @@
{ system, pkgs, inputs }:
{
native = pkgs.callPackage ./native.nix {};
}

20
nix/native.nix Normal file
View file

@ -0,0 +1,20 @@
{
lib,
stdenv,
meson,
ninja,
}:
stdenv.mkDerivation {
pname = "native";
version = "0.1";
src = ../.;
nativeBuildInputs = [ meson ninja ];
meta = {
maintainers = with lib.maintainers; [ jopejoe1 ];
platforms = lib.platforms.all;
};
}