Rename misc.nix -> deprecated.nix

This commit is contained in:
Eelco Dolstra
2015-07-23 18:31:54 +02:00
parent 637e35deb9
commit 0ae8b365b3
6 changed files with 5 additions and 7 deletions
+2
View File
@@ -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);
}