summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-03-03 15:47:24 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-03-04 00:10:01 -0300
commit5f935b5625b9d5decaf2018830c6c43b9d1045c2 (patch)
treecf3847d2ffe4a2ed22827abadc16b7d00989d143
parent548cba4ab5495404d7451f2c5be34f5aff9be560 (diff)
downloadnixpkgs-5f935b5625b9d5decaf2018830c6c43b9d1045c2.tar
nixpkgs-5f935b5625b9d5decaf2018830c6c43b9d1045c2.tar.gz
nixpkgs-5f935b5625b9d5decaf2018830c6c43b9d1045c2.tar.bz2
nixpkgs-5f935b5625b9d5decaf2018830c6c43b9d1045c2.tar.lz
nixpkgs-5f935b5625b9d5decaf2018830c6c43b9d1045c2.tar.xz
nixpkgs-5f935b5625b9d5decaf2018830c6c43b9d1045c2.tar.zst
nixpkgs-5f935b5625b9d5decaf2018830c6c43b9d1045c2.zip
librep: cleanup
-rw-r--r--pkgs/development/libraries/librep/default.nix50
1 files changed, 31 insertions, 19 deletions
diff --git a/pkgs/development/libraries/librep/default.nix b/pkgs/development/libraries/librep/default.nix
index 74c45f00adc..cd007c5fe57 100644
--- a/pkgs/development/libraries/librep/default.nix
+++ b/pkgs/development/libraries/librep/default.nix
@@ -1,37 +1,49 @@
-{ lib, stdenv, fetchurl
-, pkg-config, autoreconfHook
-, readline, texinfo
-, gdbm, gmp, libffi }:
-
-with lib;
+{ lib
+, stdenv
+, fetchurl
+, autoreconfHook
+, gdbm
+, gmp
+, libffi
+, pkg-config
+, readline
+, texinfo
+}:
 
 stdenv.mkDerivation rec {
   pname = "librep";
   version = "0.92.7";
-  sourceName = "librep_${version}";
 
   src = fetchurl {
-    url = "https://download.tuxfamily.org/librep/${sourceName}.tar.xz";
+    url = "https://download.tuxfamily.org/${pname}/${pname}_${version}.tar.xz";
     sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8";
   };
 
-  nativeBuildInputs = [ autoreconfHook pkg-config ];
-  buildInputs = [ readline texinfo ];
-  propagatedBuildInputs = [ gdbm gmp libffi ];
+  nativeBuildInputs = [
+    autoreconfHook
+    pkg-config
+    texinfo
+  ];
+  buildInputs = [
+    gdbm
+    gmp
+    libffi
+    readline
+  ];
 
   setupHook = ./setup-hook.sh;
 
-  meta = {
+  meta = with lib;{
+    homepage = "http://sawfish.tuxfamily.org/";
     description = "Fast, lightweight, and versatile Lisp environment";
     longDescription = ''
-      librep is a Lisp system for UNIX, comprising an
-      interpreter, a byte-code compiler, and a virtual
-      machine. It can serve as an application extension language
-      but is also suitable for standalone scripts.
-     '';
-    homepage = "http://sawfish.wikia.com";
-    license = licenses.gpl2;
+      librep is a Lisp system for UNIX, comprising an interpreter, a byte-code
+      compiler, and a virtual machine. It can serve as an application extension
+      language but is also suitable for standalone scripts.
+    '';
+    license = licenses.gpl2Plus;
     maintainers = [ maintainers.AndersonTorres ];
+    platforms = platforms.unix;
   };
 }
 # TODO: investigate fetchFromGithub