fmt: format with nixfmt-rfc-style

This commit is contained in:
lelgenio 2024-10-01 12:10:35 -03:00
parent 6cd3a545f2
commit af1a43a8de
3 changed files with 40 additions and 34 deletions

View file

@ -3,7 +3,8 @@
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs, ... }:
outputs =
{ self, nixpkgs, ... }:
let
# DayZ only runs on x86_64 systems
system = "x86_64-linux";
@ -12,16 +13,15 @@
overlays = [ self.overlays.default ];
};
in
with pkgs; {
with pkgs;
{
packages.${system} = rec {
default = dzgui;
inherit (pkgs) dzgui;
};
overlays = {
default = (final: _: {
dzgui = (final.callPackage ./package { });
});
default = (final: _: { dzgui = (final.callPackage ./package { }); });
};
nixosModules = rec {
@ -29,10 +29,12 @@
dzgui = import ./module.nix { inherit self; };
};
devShells.${system}.default =
mkShell { buildInputs = self.packages.${system}.default.runtimeDeps; };
devShells.${system}.default = mkShell {
buildInputs = self.packages.${system}.default.runtimeDeps;
};
checks.${system}.nixosCheck = (nixpkgs.lib.nixosSystem {
checks.${system}.nixosCheck =
(nixpkgs.lib.nixosSystem {
inherit system;
modules = [
self.nixosModules.default

View file

@ -1,5 +1,10 @@
{ self, ... }:
{ pkgs, config, lib, ... }:
{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.programs.dzgui;

View file

@ -1,15 +1,16 @@
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, curl
, jq
, python3
, wmctrl
, xdotool
, gnome
, gobject-introspection
, wrapGAppsHook
{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
curl,
jq,
python3,
wmctrl,
xdotool,
gnome,
gobject-introspection,
wrapGAppsHook,
}:
stdenv.mkDerivation rec {
pname = "dzgui";
@ -38,9 +39,7 @@ stdenv.mkDerivation rec {
runtimeDeps = [
curl
jq
(python3.withPackages (p: with p; [
pygobject3
]))
(python3.withPackages (p: with p; [ pygobject3 ]))
wmctrl
xdotool