mirror of
https://github.com/h7x4/nix-attr-search.git
synced 2024-12-22 03:57:32 +01:00
naming consistency: nix-attrs-*
-> nix-attr-*
This commit is contained in:
parent
fa2f0fd6b4
commit
fddecffa02
@ -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
|
||||
'';
|
||||
}
|
||||
|
@ -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 -}}
|
||||
|
@ -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 "." }}
|
||||
|
@ -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' {} \;
|
||||
''
|
||||
|
@ -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' {} \;
|
||||
''
|
||||
|
@ -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 {} \;
|
||||
''
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user