about summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/byacc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-03-07 08:19:10 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-03-07 08:19:10 -0300
commit4839388d2b95d909f53236e2d8f899aa811ba76a (patch)
tree6959319951fdde2c92ddf5769d654f395dde7601 /pkgs/development/tools/parsing/byacc
parent95d880e0351edc0f2c702c190799e1f32f3611ea (diff)
byacc: refactor
- Get rid of double with in meta.
Diffstat (limited to 'pkgs/development/tools/parsing/byacc')
-rw-r--r--pkgs/development/tools/parsing/byacc/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/tools/parsing/byacc/default.nix b/pkgs/development/tools/parsing/byacc/default.nix
index fe30f1b3b190a..ca0659b1fd5b2 100644
--- a/pkgs/development/tools/parsing/byacc/default.nix
+++ b/pkgs/development/tools/parsing/byacc/default.nix
@@ -3,13 +3,13 @@
 , fetchurl
 }:
 
-stdenv.mkDerivation (finalAttrs: {
+stdenv.mkDerivation (self: {
   pname = "byacc";
   version = "20221229";
 
   src = fetchurl {
     urls = let
-      inherit (finalAttrs) pname version;
+      inherit (self) pname version;
     in [
       "https://invisible-mirror.net/archives/byacc/${pname}-${version}.tgz"
       "ftp://ftp.invisible-island.net/byacc/${pname}-${version}.tgz"
@@ -18,6 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
   };
 
   configureFlags = [
+    # change yacc to byacc
     "--program-transform-name='s,^,b,'"
   ];
 
@@ -27,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
     ln -s $out/bin/byacc $out/bin/yacc
   '';
 
-  meta = with lib; {
+  meta = {
     homepage = "https://invisible-island.net/byacc/byacc.html";
     description = "Berkeley YACC";
     longDescription = ''
@@ -42,8 +43,8 @@ stdenv.mkDerivation (finalAttrs: {
       Nowadays byacc is maintained by Thomas E. Dickey.
     '';
     changelog = "https://invisible-island.net/byacc/CHANGES.html";
-    license = licenses.publicDomain;
-    maintainers = with maintainers; [ AndersonTorres ];
-    platforms = platforms.unix;
+    license = lib.licenses.publicDomain;
+    maintainers = with lib.maintainers; [ AndersonTorres ];
+    platforms = lib.platforms.unix;
   };
 })