about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libffcall
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libffcall')
-rw-r--r--nixpkgs/pkgs/development/libraries/libffcall/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libffcall/default.nix b/nixpkgs/pkgs/development/libraries/libffcall/default.nix
new file mode 100644
index 000000000000..30e5aa0cfa91
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libffcall/default.nix
@@ -0,0 +1,28 @@
+{ lib, stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  pname = "libffcall";
+  version = "2.2";
+
+  src = fetchurl {
+    url = "mirror://gnu/libffcall/libffcall-${version}.tar.gz";
+    sha256 = "sha256-6/o3+XtslPrCTs8xk/n8gpUXz4Gu6awtGRr5k9c8t0c=";
+  };
+
+  enableParallelBuilding = false;
+
+  outputs = [ "dev" "out" "doc" "man" ];
+
+  postInstall = ''
+    mkdir -p $doc/share/doc/libffcall
+    mv $out/share/html $doc/share/doc/libffcall
+    rm -rf $out/share
+  '';
+
+  meta = with lib; {
+    description = "Foreign function call library";
+    homepage = "https://www.gnu.org/software/libffcall/";
+    license = licenses.gpl2Plus;
+    platforms = platforms.unix;
+  };
+}