mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
treewide: remove usage of runCommandNoCC aliases
This commit is contained in:
parent
3037752d1d
commit
43d4ddf28e
@ -19,7 +19,7 @@ let
|
|||||||
# per debian's udev deb hook (https://man7.org/linux/man-pages/man1/dh_installudev.1.html)
|
# per debian's udev deb hook (https://man7.org/linux/man-pages/man1/dh_installudev.1.html)
|
||||||
destination = "60-scdaemon.rules";
|
destination = "60-scdaemon.rules";
|
||||||
|
|
||||||
scdaemonUdevRulesPkg = pkgs.runCommandNoCC "scdaemon-udev-rules" {} ''
|
scdaemonUdevRulesPkg = pkgs.runCommand "scdaemon-udev-rules" {} ''
|
||||||
loc="$out/lib/udev/rules.d/"
|
loc="$out/lib/udev/rules.d/"
|
||||||
mkdir -p "''${loc}"
|
mkdir -p "''${loc}"
|
||||||
cp "${scdaemonRules}" "''${loc}/${destination}"
|
cp "${scdaemonRules}" "''${loc}/${destination}"
|
||||||
|
@ -98,7 +98,7 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.runCommandNoCC "captive-browser-desktop-item" { } ''
|
(pkgs.runCommand "captive-browser-desktop-item" { } ''
|
||||||
install -Dm444 -t $out/share/applications ${desktopItem}/share/applications/*.desktop
|
install -Dm444 -t $out/share/applications ${desktopItem}/share/applications/*.desktop
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
@ -10,7 +10,6 @@ rec {
|
|||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* runCommand "name" {envVariable = true;} ''echo hello > $out''
|
* runCommand "name" {envVariable = true;} ''echo hello > $out''
|
||||||
* runCommandNoCC "name" {envVariable = true;} ''echo hello > $out'' # equivalent to prior
|
|
||||||
* runCommandCC "name" {} ''gcc -o myfile myfile.c; cp myfile $out'';
|
* runCommandCC "name" {} ''gcc -o myfile myfile.c; cp myfile $out'';
|
||||||
*
|
*
|
||||||
* The `*Local` variants force a derivation to be built locally,
|
* The `*Local` variants force a derivation to be built locally,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ runCommandNoCC, cargo, neovim, rust-analyzer, rustc }:
|
{ runCommand, cargo, neovim, rust-analyzer, rustc }:
|
||||||
runCommandNoCC "test-neovim-rust-analyzer" {
|
runCommand "test-neovim-rust-analyzer" {
|
||||||
nativeBuildInputs = [ cargo neovim rust-analyzer rustc ];
|
nativeBuildInputs = [ cargo neovim rust-analyzer rustc ];
|
||||||
|
|
||||||
testRustSrc = /* rust */ ''
|
testRustSrc = /* rust */ ''
|
||||||
|
@ -357,7 +357,7 @@ rec {
|
|||||||
} // lib.mapAttrs (_name: type: elixirOr type) lib.types;
|
} // lib.mapAttrs (_name: type: elixirOr type) lib.types;
|
||||||
};
|
};
|
||||||
|
|
||||||
generate = name: value: pkgs.runCommandNoCC name
|
generate = name: value: pkgs.runCommand name
|
||||||
{
|
{
|
||||||
value = toConf value;
|
value = toConf value;
|
||||||
passAsFile = [ "value" ];
|
passAsFile = [ "value" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user