nixfmt
This commit is contained in:
parent
4146b5aece
commit
2e10a00830
32 changed files with 2944 additions and 2163 deletions
|
@ -1,9 +1,8 @@
|
|||
{ pkgs, lib, stdenv, makeDesktopItem, desktop-file-utils,
|
||||
|
||||
python,
|
||||
python,
|
||||
|
||||
makeWrapper, nodejs, electron_9, fetchFromGitHub
|
||||
}:
|
||||
makeWrapper, nodejs, electron_9, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
baseName = "tuxedo-control-center";
|
||||
|
@ -27,13 +26,13 @@ let
|
|||
#
|
||||
# This means we have to provide our own electron binaries when
|
||||
# wrapping this program.
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD=1;
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
|
||||
|
||||
# Angular prompts for analytics, which in turn fails the build.
|
||||
#
|
||||
# We can disable analytics using false or empty string
|
||||
# (See https://github.com/angular/angular-cli/blob/1a39c5202a6fe159f8d7db85a1c186176240e437/packages/angular/cli/models/analytics.ts#L506)
|
||||
NG_CLI_ANALYTICS="false";
|
||||
NG_CLI_ANALYTICS = "false";
|
||||
};
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
|
@ -44,9 +43,8 @@ let
|
|||
icon = "tuxedo-control-center";
|
||||
categories = "System;";
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${baseName}-${version}";
|
||||
src = "${nodePackages}/lib/node_modules/tuxedo-control-center/";
|
||||
|
||||
|
@ -70,7 +68,7 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace src/common/classes/TccPaths.ts \
|
||||
--replace "/etc/tcc" "/var/lib/tcc" \
|
||||
--replace "/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd" "$out/bin/tccd"
|
||||
'';
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
set -x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue