Compare commits

..

4 Commits

Author SHA1 Message Date
Nathan McCarty 631bf8c848
Updater script 2023-05-14 19:28:36 -04:00
Nathan McCarty 90a1cfd860
Auto update layman 2023-05-14 19:12:18 -04:00
Nathan McCarty ef6b72db81
Remove custom sommelier package 2023-05-14 18:56:23 -04:00
Nathan McCarty ab2ae28c47
Autoupdate swayimg 2023-05-14 18:54:38 -04:00
9 changed files with 72 additions and 49 deletions

View File

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

View File

@ -15,17 +15,7 @@
};
};
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;
})
];
home.packages = with pkgs; [ gammastep fido2luks ];
# Sway outputs
wayland.windowManager.sway.config = {

View File

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

View File

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

4
sources/layman.json Normal file
View File

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

5
sources/swayimg.json Normal file
View File

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

29
sources/update-sources.sh Executable file
View File

@ -0,0 +1,29 @@
#!/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"

21
update.sh Executable file
View File

@ -0,0 +1,21 @@
#!/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