make a simple c++ project
This commit is contained in:
parent
2757bd090c
commit
2d15d63dcb
8 changed files with 80 additions and 30 deletions
5
nix/default.nix
Normal file
5
nix/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ system, pkgs, inputs }:
|
||||
|
||||
{
|
||||
native = pkgs.callPackage ./native.nix {};
|
||||
}
|
20
nix/native.nix
Normal file
20
nix/native.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue