Compare commits

..

No commits in common. "631bf8c848d2ec95a7502c8b120829b58143d6bd" and "4c08a978e088e0220ea553bcb5d35e498c0ffbb9" have entirely different histories.

9 changed files with 49 additions and 72 deletions

View File

@ -249,6 +249,7 @@
}; };
swayimg = pkgs.callPackage ./packages/swayimg/default.nix { }; swayimg = pkgs.callPackage ./packages/swayimg/default.nix { };
layman = pkgs.callPackage ./packages/layman/default.nix { }; layman = pkgs.callPackage ./packages/layman/default.nix { };
sommelier = pkgs.callPackage ./packages/sommelier/default.nix { };
}; };
}); });
} }

View File

@ -15,7 +15,17 @@
}; };
}; };
home.packages = with pkgs; [ gammastep fido2luks ]; home.packages = with pkgs; [
gammastep
fido2luks
(pkgs.makeDesktopItem rec {
name = "VMWare Workstation (Wrapped)";
exec = "${
inputs.self.packages.${pkgs.system}.sommelier
}/bin/sommelier -X --scale 1 vmware";
desktopName = name;
})
];
# Sway outputs # Sway outputs
wayland.windowManager.sway.config = { wayland.windowManager.sway.config = {

View File

@ -1,6 +1,5 @@
{ pkgs, lib, pythonPkgs ? pkgs.python311Packages }: { pkgs, lib, pythonPkgs ? pkgs.python311Packages }:
let let
vals = builtins.fromJSON (builtins.readFile ../../sources/layman.json);
inherit pythonPkgs; inherit pythonPkgs;
f = { buildPythonPackage, i3ipc, setproctitle, tomli, setuptools }: f = { buildPythonPackage, i3ipc, setproctitle, tomli, setuptools }:
buildPythonPackage rec { buildPythonPackage rec {
@ -10,8 +9,8 @@ let
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "frap129"; owner = "frap129";
repo = "layman"; repo = "layman";
rev = vals.rev; rev = "c827811d71461d9190c3f5d0d00d339d74ff3407";
hash = vals.hash; hash = "sha256-Z8gliSEZgFtOtCZf51J79SqMTHOEd2zwtv0tFiXWn8k=";
}; };
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ i3ipc setproctitle tomli ]; propagatedBuildInputs = [ i3ipc setproctitle tomli ];

View File

@ -0,0 +1,29 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wayland-scanner
, libxkbcommon, mesa, pixman, xorg, wayland, gtest }:
stdenv.mkDerivation {
pname = "sommelier";
version = "104.0";
src = fetchFromGitHub {
owner = "akvadrako";
repo = "sommelier";
rev = "31a42a2f8c649ae82a3239284bced7ef39a569ef";
sha256 = "sha256-ZTvH4mn7eK2e/1u6FVVpR7aaeAQ+JxSa4nhXWLxSfvo=";
};
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
buildInputs = [ libxkbcommon mesa pixman wayland xorg.libxcb ];
doCheck = true;
nativeCheckInputs = [ gtest ];
meta = with lib; {
homepage =
"https://chromium.googlesource.com/chromiumos/platform2/+/refs/heads/main/vm_tools/sommelier/";
description = "Nested Wayland compositor with support for X11 forwarding";
maintainers = with maintainers; [ qyliss ];
license = licenses.bsd3;
platforms = platforms.linux;
};
}

View File

@ -2,18 +2,15 @@
, makeDesktopItem, wayland, wayland-protocols, json_c, libxkbcommon, fontconfig , makeDesktopItem, wayland, wayland-protocols, json_c, libxkbcommon, fontconfig
, giflib, libjpeg, libjxl, libpng, librsvg, libwebp, libheif, libtiff, libexif , giflib, libjpeg, libjxl, libpng, librsvg, libwebp, libheif, libtiff, libexif
, bash-completion, ... }: , bash-completion, ... }:
let
vals = builtins.fromJSON (builtins.readFile ../../sources/swayimg.json); stdenv.mkDerivation rec {
version = vals.version;
url = vals.url;
hash = vals.hash;
in stdenv.mkDerivation rec {
pname = "swayimg"; pname = "swayimg";
inherit version; version = "1.11";
src = fetchurl { src = fetchurl {
inherit url; url =
inherit hash; "https://github.com/artemsen/swayimg/archive/refs/tags/v${version}.tar.gz";
hash = "sha256-t4U0F8rzySgZUQdkTfMbqAqQb8PsyhgNsoQau/rCdzY=";
name = "${pname}-${version}.tar.gz"; name = "${pname}-${version}.tar.gz";
}; };

View File

@ -1,4 +0,0 @@
{
"rev": "c827811d71461d9190c3f5d0d00d339d74ff3407",
"hash": "sha256-Z8gliSEZgFtOtCZf51J79SqMTHOEd2zwtv0tFiXWn8k="
}

View File

@ -1,5 +0,0 @@
{
"version": "1.11",
"url": "https://github.com/artemsen/swayimg/archive/refs/tags/v1.11.tar.gz",
"hash": "sha256-t4U0F8rzySgZUQdkTfMbqAqQb8PsyhgNsoQau/rCdzY="
}

View File

@ -1,29 +0,0 @@
#!/usr/bin/env bash
set -eou pipefail
DIRECTORY=$(realpath "$(dirname "$0")")
# Update swayimg
SWAYIMG_VERSION=$(curl https://api.github.com/repos/artemsen/swayimg/tags | jq -r ".[0].name" | tr -d "v")
SWAYIMG_URL="https://github.com/artemsen/swayimg/archive/refs/tags/v$SWAYIMG_VERSION.tar.gz"
SWAYIMG_HASH=$(nix-prefetch fetchurl --url "$SWAYIMG_URL" -s)
jq --null-input \
--arg version "$SWAYIMG_VERSION" \
--arg url "$SWAYIMG_URL" \
--arg hash "$SWAYIMG_HASH" \
'{"version": $version, "url": $url, "hash": $hash}' \
> $DIRECTORY/swayimg.json
echo "swayimg now at $SWAYIMG_VERSION"
# Update layman
LAYMAN_BRANCH=$(curl https://api.github.com/repos/frap129/layman | jq -r '.default_branch')
LAYMAN_REV=$(curl https://api.github.com/repos/frap129/layman/git/refs/heads/$LAYMAN_BRANCH | \
jq -r '.object.sha')
LAYMAN_HASH=$(nix-prefetch fetchFromGitHub --owner frap129 --repo layman --rev $LAYMAN_REV)
jq --null-input \
--arg rev "$LAYMAN_REV" \
--arg hash "$LAYMAN_HASH" \
'{"rev": $rev, "hash": $hash}' \
> $DIRECTORY/layman.json
echo "layman now at $LAYMAN_REV"

View File

@ -1,21 +0,0 @@
#!/usr/bin/env bash
set -eou pipefail
DIRECTORY=$(realpath "$(dirname "$0")")
# Update our sources first
$DIRECTORY/sources/update-sources.sh
# Then update the flake
nix flake update
# Make sure we still build our systems
nix build .#nixosConfigurations.oracles.config.system.build.toplevel
nix build .#nixosConfigurations.matrix.config.system.build.toplevel
nix build .#nixosConfigurations.tounge.config.system.build.toplevel
nix build .#nixosConfigurations.perception.config.system.build.toplevel
nix build .#nixosConfigurations.fusion.config.system.build.toplevel
# Collect garbage
nix-collect-garbage