Compare commits

...

3 commits
main ... nix

Author SHA1 Message Date
Tristan Smith
f502633090
testing commit with correct gpg key 2024-08-27 02:34:39 -04:00
Tristan Smith
4138aa7213 updated readme 2024-08-27 02:25:10 -04:00
Tristan Smith
e390c2161d nix flake? 2024-08-27 02:21:46 -04:00
2 changed files with 19 additions and 0 deletions

14
default.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.gcc
pkgs.libpcap
];
# Set any environment variables if needed
shellHook = ''
echo "Environment set up for ip-reporter-c"
'';
}

View file

@ -3,3 +3,8 @@
I'm starting to look at programming languages like vehicles. The older ones are much simpler and easier to hack around on, but this is probably not as 'safe' as a language like Rust. I'm generally in favor of *most* safety features they put on cars, but, speaking as a former mechanic, I can't say I agreed with all of them.
I think this may be similar to the arguments over languages like C/C++ vs Rust and Zig.
I installed NixOS tonight because I have a WFH day at work tomorrow due to the heat. I've messed with Nix and building in the past and it's not gone well. Got this working it seems.
After checking out the `nix` branch, run `nix-shell` in the cloned directory and then `gcc -o ip-reporter ip-reporter.c -lpcap`. Worked great.
test trust