Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
|
f502633090 | ||
|
4138aa7213 | ||
|
e390c2161d |
2 changed files with 19 additions and 0 deletions
14
default.nix
Normal file
14
default.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue