naming consistency: `nix-attrs-*` -> `nix-attr-*`

This commit is contained in:
Oystein Kristoffer Tveit 2022-11-26 21:01:29 +01:00
parent fa2f0fd6b4
commit fddecffa02
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
7 changed files with 9 additions and 9 deletions

View File

@ -7,8 +7,8 @@ pkgs.mkShell {
hlint = pkgs.callPackage ./utils/hlint.nix { };
ormolu = pkgs.callPackage ./utils/ormolu.nix { };
in ''
alias nasf=${format}/bin/nix-attrs-search-format
alias nashl=${hlint}/bin/nix-attrs-search-hlint
alias nashf=${ormolu}/bin/nix-attrs-search-ormolu
alias nasf=${format}/bin/nix-attr-search-format
alias nashl=${hlint}/bin/nix-attr-search-hlint
alias nashf=${ormolu}/bin/nix-attr-search-ormolu
'';
}

View File

@ -2,7 +2,7 @@
let
inherit (pkgs.callPackage ../internals/lib.nix { })
flatten red bold blinkred green yellow magenta blue clear;
in pkgs.writeText "nix-attrs-search-internal-option-template" (flatten ''
in pkgs.writeText "nix-attr-search-internal-option-template" (flatten ''
{{ define "colorize" -}}
{{ strings.ShellQuote . | strings.Trim "'" }}
{{- end -}}

View File

@ -1,6 +1,6 @@
{ pkgs }:
let inherit (pkgs.callPackage ../internals/lib.nix { }) flatten;
in pkgs.writeText "nix-attrs-search-internal-option-template" (flatten ''
in pkgs.writeText "nix-attr-search-internal-option-template" (flatten ''
{{ with (ds "opt")}}
{{- $origTitle := join .loc "." }}
{{- $title := join .loc "." }}

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
pkgs.writeScriptBin "nix-attrs-search-format" ''
pkgs.writeScriptBin "nix-attr-search-format" ''
find -name '*.nix' -exec '${pkgs.nixfmt}/bin/nixfmt' {} \;
''

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
pkgs.writeScriptBin "nix-attrs-search-hlint" ''
pkgs.writeScriptBin "nix-attr-search-hlint" ''
find -name '*.hs' -exec '${pkgs.hlint}/bin/hlint' {} \;
''

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
pkgs.writeScriptBin "nix-attrs-search-ormolu" ''
pkgs.writeScriptBin "nix-attr-search-ormolu" ''
find -name '*.hs' -exec '${pkgs.ormolu}/bin/ormolu' --mode inplace {} \;
''

View File

@ -1,5 +1,5 @@
{ pkgs, home-manager-options, json2nix }:
pkgs.writers.writeBash "nix-attrs-search-test-json2nix" ''
pkgs.writers.writeBash "nix-attr-search-test-json2nix" ''
ELEMENT_COUNT=$(${jq} 'keys | length' ${home-manager-options}/share/doc/home-manager/options.json)
echo "Trying $(($ELEMENT_COUNT - 1)) elements"
for i in $(seq 0 $(($ELEMENT_COUNT - 1))); do