1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00

nix: Fix comment capitalization in .nix files

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2024-02-27 22:37:55 +01:00
parent 1f756ac49e
commit eb15e83a31
3 changed files with 18 additions and 18 deletions

View file

@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2023 OPAL-RT Germany GmbH # SPDX-FileCopyrightText: 2023 OPAL-RT Germany GmbH
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
{ {
description = "a tool for connecting real-time power grid simulation equipment"; description = "VILLASnode is a client/server application to connect simulation equipment and software.";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05"; nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
@ -57,19 +57,19 @@
separateDebugInfo = true; separateDebugInfo = true;
}; };
# supported systems for native compilation # Supported systems for native compilation
supportedSystems = ["x86_64-linux" "aarch64-linux"]; supportedSystems = ["x86_64-linux" "aarch64-linux"];
# supported systems to cross compile to # Supported systems to cross compile to
supportedCrossSystems = ["aarch64-multiplatform"]; supportedCrossSystems = ["aarch64-multiplatform"];
# generate attributes corresponding to all the supported systems # Generate attributes corresponding to all the supported systems
forSupportedSystems = lib.genAttrs supportedSystems; forSupportedSystems = lib.genAttrs supportedSystems;
# generate attributes corresponding to all supported combinations of system and crossSystem # Generate attributes corresponding to all supported combinations of system and crossSystem
forSupportedCrossSystems = f: forSupportedSystems (system: lib.genAttrs supportedCrossSystems (f system)); forSupportedCrossSystems = f: forSupportedSystems (system: lib.genAttrs supportedCrossSystems (f system));
# initialize nixpkgs for the specified `system` # Initialize nixpkgs for the specified `system`
pkgsFor = system: pkgsFor = system:
import nixpkgs { import nixpkgs {
inherit system; inherit system;
@ -134,19 +134,19 @@
}; };
}; };
in { in {
# standard flake attribute for normal packages (not cross-compiled) # Standard flake attribute for normal packages (not cross-compiled)
packages = forSupportedSystems ( packages = forSupportedSystems (
system: system:
packagesWith (pkgsFor system) packagesWith (pkgsFor system)
); );
# non-standard attribute for cross-compilated packages # Non-standard attribute for cross-compilated packages
crossPackages = forSupportedCrossSystems ( crossPackages = forSupportedCrossSystems (
system: crossSystem: system: crossSystem:
packagesWith (crossPkgsFor system crossSystem) packagesWith (crossPkgsFor system crossSystem)
); );
# standard flake attribute allowing you to add the villas packages to your nixpkgs # Standard flake attribute allowing you to add the villas packages to your nixpkgs
overlays = { overlays = {
default = final: prev: packagesWith final; default = final: prev: packagesWith final;
debug = final: prev: { debug = final: prev: {
@ -159,7 +159,7 @@
}; };
}; };
# standard flake attribute for defining developer environments # Standard flake attribute for defining developer environments
devShells = forSupportedSystems ( devShells = forSupportedSystems (
system: let system: let
pkgs = devPkgsFor system; pkgs = devPkgsFor system;
@ -194,7 +194,7 @@
} }
); );
# standard flake attribute to add additional checks to `nix flake check` # Standard flake attribute to add additional checks to `nix flake check`
checks = forSupportedSystems ( checks = forSupportedSystems (
system: let system: let
pkgs = pkgsFor system; pkgs = pkgsFor system;
@ -206,7 +206,7 @@
} }
); );
# standard flake attribute specifying the formatter invoked on `nix fmt` # Standard flake attribute specifying the formatter invoked on `nix fmt`
formatter = forSupportedSystems (system: (pkgsFor system).alejandra); formatter = forSupportedSystems (system: (pkgsFor system).alejandra);
}; };
} }

View file

@ -18,9 +18,9 @@ stdenv.mkDerivation {
nativeBuildInputs = [cmake pkg-config]; nativeBuildInputs = [cmake pkg-config];
buildInputs = [libnice libpcap openssl]; buildInputs = [libnice libpcap openssl];
cmakeFlags = [ cmakeFlags = [
"-DUSE_NICE=ON" # use libnice for better protocol support "-DUSE_NICE=ON" # Use libnice for better protocol support
"-DNO_WEBSOCKET=ON" # villas uses libwebsockets instead "-DNO_WEBSOCKET=ON" # VILLASnode uses libwebsockets instead
"-DNO_MEDIA=ON" # villas does not use media transport features "-DNO_MEDIA=ON" # VILLASnode does not use media transport features
]; ];
meta = with lib; { meta = with lib; {
description = "C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSockets"; description = "C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSockets";

View file

@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2023 OPAL-RT Germany GmbH # SPDX-FileCopyrightText: 2023 OPAL-RT Germany GmbH
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
{ {
# general configuration # General configuration
src, src,
version, version,
withGpl ? true, withGpl ? true,
@ -35,7 +35,7 @@
withNodeUldaq ? withAllNodes, withNodeUldaq ? withAllNodes,
withNodeWebrtc ? withAllNodes, withNodeWebrtc ? withAllNodes,
withNodeZeromq ? withAllNodes, withNodeZeromq ? withAllNodes,
# minimal dependencies # Minimal dependencies
cmake, cmake,
common, common,
coreutils, coreutils,
@ -46,7 +46,7 @@
makeWrapper, makeWrapper,
pkg-config, pkg-config,
stdenv, stdenv,
# optional dependencies # Optional dependencies
comedilib, comedilib,
curl, curl,
czmq, czmq,