summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-09-09 18:16:09 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-09-09 18:16:09 +0200
commit3e7a3ce3c07ba831c4522b6119d049ba9c1fd703 (patch)
tree829418e992970259266d7ac091917565158d27e6
Initial import
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--.gitignore2
-rw-r--r--LICENSE13
-rw-r--r--README.md9
-rw-r--r--shell.nix10
4 files changed, 34 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6aa80cc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/build
+result
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..3a18424
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..4edae90
--- /dev/null
+++ b/README.md
@@ -0,0 +1,9 @@
+# getif
+
+Simple C++ program to get a list of network interfaces and their adresses.
+
+
+# License
+
+WTFPL
+
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..99685a1
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,10 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+pkgs.mkShell {
+ name = "getif";
+
+ nativeBuildInputs = with pkgs; [ cmake pkg-config ];
+ buildInputs = with pkgs; [
+ docopt_cpp
+ ];
+}