Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f502633090 | ||
![]() |
4138aa7213 | ||
![]() |
e390c2161d |
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"
|
||||
'';
|
||||
}
|
||||
|
@ -4,4 +4,7 @@ I'm starting to look at programming languages like vehicles. The older ones are
|
||||
|
||||
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…
x
Reference in New Issue
Block a user