flake: reformat with nixfmt

This commit is contained in:
Infinidoge 2025-01-28 20:33:04 -05:00
parent a79e641851
commit eaf4f56ac0
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
117 changed files with 2667 additions and 1592 deletions

View file

@ -14,8 +14,12 @@ rec {
tmx-cups-ppd = pkgs.callPackage ./tmx-cups-ppd.nix { };
unbted = pkgs.callPackage ./unbted.nix { };
unmap = pkgs.callPackage ./unmap { };
vpython-jupyter = pkgs.python3Packages.callPackage ./vpython-jupyter.nix { inherit jupyterlab-vpython; };
vpython-jupyter = pkgs.python3Packages.callPackage ./vpython-jupyter.nix {
inherit jupyterlab-vpython;
};
jupyterlab-vpython = pkgs.python3Packages.callPackage ./jupyterlab-vpython { };
jupyter-server-proxy = pkgs.python3Packages.callPackage ./jupyter-server-proxy { inherit simpervisor; };
jupyter-server-proxy = pkgs.python3Packages.callPackage ./jupyter-server-proxy {
inherit simpervisor;
};
simpervisor = pkgs.python3Packages.callPackage ./simpervisor.nix { };
}

View file

@ -1,9 +1,10 @@
{ stdenv
, lib
, fetchFromGitHub
, jre
, makeWrapper
, maven
{
stdenv,
lib,
fetchFromGitHub,
jre,
makeWrapper,
maven,
}:
maven.buildMavenPackage rec {

View file

@ -1,6 +1,7 @@
{ self, lib, ... }:
{
perSystem = { pkgs, ... }:
perSystem =
{ pkgs, ... }:
let
allPackages = import ./all-packages.nix { inherit pkgs; };
in

View file

@ -1,8 +1,9 @@
{ lib
, stdenvNoCC
, fetchFromGitea
, makeWrapper
, jdk
{
lib,
stdenvNoCC,
fetchFromGitea,
makeWrapper,
jdk,
}:
stdenvNoCC.mkDerivation rec {
pname = "ears-cli";
@ -16,7 +17,10 @@ stdenvNoCC.mkDerivation rec {
sha256 = "sha256-3ov7wjw8nxjwrNRH0wHICbZjXR4j2DPkUl5WlxJZsLA=";
};
nativeBuildInputs = [ jdk makeWrapper ];
nativeBuildInputs = [
jdk
makeWrapper
];
buildPhase = ''
bash ./build.sh

View file

@ -1,11 +1,12 @@
{ stdenv
, lib
, fetchFromGitLab
, pkg-config
, cmake
, hostname
, libusb1
, libftdi1
{
stdenv,
lib,
fetchFromGitLab,
pkg-config,
cmake,
hostname,
libusb1,
libftdi1,
}:
stdenv.mkDerivation {

View file

@ -1,4 +1,8 @@
{ lib, fetchFromGitHub, rustPlatform }:
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "hexagon";

View file

@ -1,19 +1,20 @@
{ buildPythonPackage
, fetchFromGitHub
{
buildPythonPackage,
fetchFromGitHub,
, yarnConfigHook
, fetchYarnDeps
, hatchling
, hatch-jupyter-builder
, nodejs
yarnConfigHook,
fetchYarnDeps,
hatchling,
hatch-jupyter-builder,
nodejs,
, jupyterlab
, aiohttp
, importlib-metadata
, jupyter-server
, simpervisor
, tornado
, traitlets
jupyterlab,
aiohttp,
importlib-metadata,
jupyter-server,
simpervisor,
tornado,
traitlets,
}:
buildPythonPackage {

View file

@ -1,16 +1,17 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, yarnConfigHook
, fetchYarnDeps
{
lib,
buildPythonPackage,
fetchFromGitHub,
yarnConfigHook,
fetchYarnDeps,
, jupyterlab
, jupyter
, jupyter-packaging
, hatchling
, hatch-jupyter-builder
, hatch-nodejs-version
, nodejs
jupyterlab,
jupyter,
jupyter-packaging,
hatchling,
hatch-jupyter-builder,
hatch-nodejs-version,
nodejs,
}:
buildPythonPackage rec {
@ -35,7 +36,6 @@ buildPythonPackage rec {
--replace-fail '"@myst-theme/frontmatter": "^0.9.0"' '"@myst-theme/frontmatter": "^0.13.2"'
'';
yarnOfflineCache = fetchYarnDeps {
yarnLock = ./yarn.lock;
hash = "sha256-ou3Tjml5VU1O14k/oIDufj3QV2sQYD8EzVGAPhF9RZI=";
@ -46,7 +46,6 @@ buildPythonPackage rec {
nodejs
];
build-system = [
hatchling
hatch-jupyter-builder
@ -86,4 +85,3 @@ buildPythonPackage rec {
maintainers = [ ];
};
}

View file

@ -1,16 +1,17 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, yarnConfigHook
, fetchYarnDeps
{
lib,
buildPythonPackage,
fetchFromGitHub,
yarnConfigHook,
fetchYarnDeps,
, jupyterlab
, jupyter
, jupyter-packaging
, hatchling
, hatch-jupyter-builder
, hatch-nodejs-version
, nodejs
jupyterlab,
jupyter,
jupyter-packaging,
hatchling,
hatch-jupyter-builder,
hatch-nodejs-version,
nodejs,
}:
buildPythonPackage rec {
@ -29,7 +30,6 @@ buildPythonPackage rec {
cp ${./yarn.lock} yarn.lock
'';
yarnOfflineCache = fetchYarnDeps {
yarnLock = ./yarn.lock;
hash = "sha256-z82r763EG+QGu2KbZ2PaKueAs9wrpTYul/O/O7It7lY=";
@ -40,7 +40,6 @@ buildPythonPackage rec {
nodejs
];
build-system = [
hatchling
hatch-jupyter-builder
@ -65,7 +64,6 @@ buildPythonPackage rec {
yarn --offline run build:prod
'';
# has no tests
doCheck = false;
@ -78,4 +76,3 @@ buildPythonPackage rec {
maintainers = [ ];
};
}

View file

@ -1,16 +1,17 @@
{ buildPythonPackage
, fetchFromGitHub
{
buildPythonPackage,
fetchFromGitHub,
, yarnConfigHook
, fetchYarnDeps
yarnConfigHook,
fetchYarnDeps,
, jupyterlab
, jupyter
, jupyter-packaging
, hatchling
, hatch-jupyter-builder
, hatch-nodejs-version
, nodejs
jupyterlab,
jupyter,
jupyter-packaging,
hatchling,
hatch-jupyter-builder,
hatch-nodejs-version,
nodejs,
}:
buildPythonPackage rec {

View file

@ -1,10 +1,11 @@
{ stdenv
, lib
, fetchurl
, jre
, gtk3
, makeWrapper
, wrapGAppsHook
{
stdenv,
lib,
fetchurl,
jre,
gtk3,
makeWrapper,
wrapGAppsHook,
}:
let

View file

@ -1,4 +1,10 @@
{ runtimeShell, writeShellScriptBin, curl, jq, gnused }:
{
runtimeShell,
writeShellScriptBin,
curl,
jq,
gnused,
}:
writeShellScriptBin "nix-modrinth-prefetch" ''
input=$(${curl}/bin/curl --no-progress-meter https://api.modrinth.com/v2/version/$1)

View file

@ -1,10 +1,11 @@
# Taken from https://github.com/VergeDX/config-nixpkgs/blob/899f13750c9c1795d455eeee9cb28d3aa74a0866/packages/gui/olympus.nix
{ stdenv
, lib
, fetchzip
, unzip
, makeDesktopItem
, buildFHSEnv
{
stdenv,
lib,
fetchzip,
unzip,
makeDesktopItem,
buildFHSEnv,
}:
let
olympus = stdenv.mkDerivation rec {

View file

@ -1,7 +1,8 @@
{ stdenv
, fetchFromGitHub
, lib
, wxGTK32
{
stdenv,
fetchFromGitHub,
lib,
wxGTK32,
}:
stdenv.mkDerivation {

View file

@ -1,4 +1,8 @@
{ buildPythonPackage, fetchFromGitHub, hatchling }:
{
buildPythonPackage,
fetchFromGitHub,
hatchling,
}:
buildPythonPackage {
pname = "simpervisor";

View file

@ -2,26 +2,29 @@
args:
stdenv.mkDerivation ({
name = if args ? name then args.name else baseNameOf (toString args.src);
builder = builtins.toFile "builder.sh" ''
source $stdenv/setup
set -o pipefail
stdenv.mkDerivation (
{
name = if args ? name then args.name else baseNameOf (toString args.src);
builder = builtins.toFile "builder.sh" ''
source $stdenv/setup
set -o pipefail
eval "$preInstall"
eval "$preInstall"
args=
args=
cp -r "$src" "$out"
cp -r "$src" "$out"
pushd "$out"
echo -ne "${lib.concatStringsSep "\\0" args.files}" | xargs -0 -n1 -I {} -- find {} -type f -print0 | while read -d "" line; do
substituteAllInPlace "$line"
done
popd
pushd "$out"
echo -ne "${lib.concatStringsSep "\\0" args.files}" | xargs -0 -n1 -I {} -- find {} -type f -print0 | while read -d "" line; do
substituteAllInPlace "$line"
done
popd
eval "$postInstall"
'';
preferLocalBuild = true;
allowSubstitutes = false;
} // args)
eval "$postInstall"
'';
preferLocalBuild = true;
allowSubstitutes = false;
}
// args
)

View file

@ -1,8 +1,9 @@
{ stdenv
, fetchurl
, bintools
, cups
, autoPatchelfHook
{
stdenv,
fetchurl,
bintools,
cups,
autoPatchelfHook,
}:
stdenv.mkDerivation rec {
@ -14,7 +15,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-8WA6Q5z9//UJj20VHOsPA/nCCd50CcaHRVArtmTjeiQ=";
};
buildInputs = [ bintools cups autoPatchelfHook ];
buildInputs = [
bintools
cups
autoPatchelfHook
];
buildPhase = ''
ar p filter/tmx-cups_*_amd64.deb data.tar.gz \

View file

@ -1,9 +1,10 @@
# Based on this example: https://git.marvid.fr/scolobb/nix-GINsim
{ stdenv
, fetchurl
, makeWrapper
, lib
, jre
{
stdenv,
fetchurl,
makeWrapper,
lib,
jre,
}:
stdenv.mkDerivation rec {
pname = "unbted";

View file

@ -1,6 +1,7 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {

View file

@ -1,16 +1,17 @@
{ buildPythonPackage
, fetchFromGitHub
{
buildPythonPackage,
fetchFromGitHub,
, cython
, setuptools
, setuptools_scm
cython,
setuptools,
setuptools_scm,
, autobahn
, ipykernel
, jupyter
, notebook
, numpy
, jupyterlab-vpython
autobahn,
ipykernel,
jupyter,
notebook,
numpy,
jupyterlab-vpython,
}:
buildPythonPackage {