about summary refs log tree commit diff
path: root/pkgs/development/libraries/librep
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-06-09 20:12:22 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-06-11 00:22:30 +0000
commitacf84a140f32413ed723621149e7c99d0057b82b (patch)
tree93671a4b0ea38bc6574e093e148e469efd73a74b /pkgs/development/libraries/librep
parent740431208ea24bf6880b8f063b41a72183f597e5 (diff)
librep: refactor
Now with strictDeps!
Diffstat (limited to 'pkgs/development/libraries/librep')
-rw-r--r--pkgs/development/libraries/librep/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/libraries/librep/default.nix b/pkgs/development/libraries/librep/default.nix
index e67d47d450268..84f610ce24746 100644
--- a/pkgs/development/libraries/librep/default.nix
+++ b/pkgs/development/libraries/librep/default.nix
@@ -10,13 +10,13 @@
 , texinfo
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "librep";
   version = "0.92.7";
 
   src = fetchurl {
-    url = "https://download.tuxfamily.org/${pname}/${pname}_${version}.tar.xz";
-    sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8";
+    url = "https://download.tuxfamily.org/librep/librep_${finalAttrs.version}.tar.xz";
+    hash = "sha256-SKGWeax8BTCollfeGP/knFdZpf9w/IRJKLDl0AOVrK4=";
   };
 
   nativeBuildInputs = [
@@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
     pkg-config
     texinfo
   ];
+
   buildInputs = [
     gdbm
     gmp
@@ -31,12 +32,14 @@ stdenv.mkDerivation rec {
     readline
   ];
 
+  strictDeps = true;
+
   # ensure libsystem/ctype functions don't get duplicated when using clang
   configureFlags = lib.optionals stdenv.isDarwin [ "CFLAGS=-std=gnu89" ];
 
   setupHook = ./setup-hook.sh;
 
-  meta = with lib;{
+  meta = {
     homepage = "http://sawfish.tuxfamily.org/";
     description = "Fast, lightweight, and versatile Lisp environment";
     longDescription = ''
@@ -44,9 +47,9 @@ stdenv.mkDerivation rec {
       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;
+    license = lib.licenses.gpl2Plus;
+    maintainers = [ lib.maintainers.AndersonTorres ];
+    platforms = lib.platforms.unix;
   };
-}
+})
 # TODO: investigate fetchFromGithub