updates
This commit is contained in:
parent
bbcb6c3fd6
commit
ec6619b23b
25
flake.lock
generated
Normal file
25
flake.lock
generated
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1764983851,
|
||||||
|
"narHash": "sha256-y7RPKl/jJ/KAP/VKLMghMgXTlvNIJMHKskl8/Uuar7o=",
|
||||||
|
"rev": "d9bc5c7dceb30d8d6fafa10aeb6aa8a48c218454",
|
||||||
|
"revCount": 902883,
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2511.902883%2Brev-d9bc5c7dceb30d8d6fafa10aeb6aa8a48c218454/019af9e3-4981-798f-83ae-1c022e08ffcc/source.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@ -44,6 +44,7 @@
|
|||||||
shellHook = ''
|
shellHook = ''
|
||||||
echo "welcome to c++ devshell nyaaa :3"
|
echo "welcome to c++ devshell nyaaa :3"
|
||||||
'';
|
'';
|
||||||
|
NIX_BUILD_SHELL = "zsh";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
8
main.cpp
8
main.cpp
@ -1,10 +1,10 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main() {
|
int main(int argc, char **argv) {
|
||||||
string bla = "hello world";
|
for (int i = 0; i <= argc; i++) {
|
||||||
cout << bla << std::endl;
|
cout << argv[i] << endl;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
project('flake', 'cpp',
|
project('hello',
|
||||||
default_options: ['cpp_std=c++20'])
|
'cpp',
|
||||||
executable('flake', 'main.cpp')
|
version: '1.0',
|
||||||
|
default_options: ['cpp_std=c++20', 'optimization=2'])
|
||||||
|
executable('hello', 'main.cpp')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user