summary refs log tree commit diff
path: root/lib/strings.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-23 17:41:35 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-23 18:31:54 +0200
commit0ae8b365b35fa1c3cac700ce34b37012f96d7deb (patch)
tree4cc6b0f223975a176ef6035283802ba21687706b /lib/strings.nix
parent637e35deb99c5efbb8bd760a3ad08d3899534ead (diff)
downloadnixpkgs-0ae8b365b35fa1c3cac700ce34b37012f96d7deb.tar
nixpkgs-0ae8b365b35fa1c3cac700ce34b37012f96d7deb.tar.gz
nixpkgs-0ae8b365b35fa1c3cac700ce34b37012f96d7deb.tar.bz2
nixpkgs-0ae8b365b35fa1c3cac700ce34b37012f96d7deb.tar.lz
nixpkgs-0ae8b365b35fa1c3cac700ce34b37012f96d7deb.tar.xz
nixpkgs-0ae8b365b35fa1c3cac700ce34b37012f96d7deb.tar.zst
nixpkgs-0ae8b365b35fa1c3cac700ce34b37012f96d7deb.zip
Rename misc.nix -> deprecated.nix
Diffstat (limited to 'lib/strings.nix')
-rw-r--r--lib/strings.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index f0ecb15ab2d..895b230744f 100644
--- a/lib/strings.nix
+++ b/lib/strings.nix
@@ -210,6 +210,7 @@ rec {
   # standard GNU Autoconf scripts.
   enableFeature = enable: feat: "--${if enable then "enable" else "disable"}-${feat}";
 
+
   # Create a fixed width string with additional prefix to match required width
   fixedWidthString = width: filler: str:
     let
@@ -219,6 +220,7 @@ rec {
       assert strw <= width;
       if strw == width then str else filler + fixedWidthString reqWidth filler str;
 
+
   # Format a number adding leading zeroes up to fixed width
   fixedWidthNumber = width: n: fixedWidthString width "0" (toString n);
 }