summary refs log tree commit diff
path: root/pkgs/tools/misc/profetch
diff options
context:
space:
mode:
authorllathasa-veleth <llathasa@outlook.com>2021-08-12 14:27:25 +0300
committerllathasa-veleth <llathasa@outlook.com>2021-08-12 14:27:25 +0300
commit1bf1d81053f99800c3bcf22e90faba74ea11fcbb (patch)
tree12ede42ac029506f1966d9cdadb3c2ca3c2acd27 /pkgs/tools/misc/profetch
parent9df2cb074d72ea80ac9fd225b29060c8cf13dd39 (diff)
profetch: init at v0.1.6
Diffstat (limited to 'pkgs/tools/misc/profetch')
-rw-r--r--pkgs/tools/misc/profetch/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/profetch/default.nix b/pkgs/tools/misc/profetch/default.nix
new file mode 100644
index 0000000000000..52211ee1c68a8
--- /dev/null
+++ b/pkgs/tools/misc/profetch/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, lib
+, fetchFromGitHub, gprolog }:
+
+stdenv.mkDerivation rec {
+  pname = "profetch";
+  version = "v0.1.6";
+
+  src = fetchFromGitHub {
+    owner = "RustemB";
+    repo = "profetch";
+    rev = "v0.1.6";
+    sha256 = "1clh3l50wz6mlrw9kx0wh2bbhnz6bsksyh4ngz7givv4y3g9m702";
+  };
+
+  buildInputs = [ gprolog ];
+
+  buildPhase = ''
+    gplc profetch.pl --no-top-level            \
+                     --no-debugger --no-fd-lib \
+                     --no-fd-lib-warn --min-size -o profetch
+  '';
+
+  installPhase = ''
+    install -Dm755 -t $out/bin profetch
+  '';
+
+  meta = with lib; {
+    description = "System Information Fetcher Written in GNU/Prolog";
+    homepage = "https://github.com/RustemB/profetch";
+    license = licenses.gpl3;
+    platforms = platforms.all;
+    maintainers = [ maintainers.vel ];
+  };
+}