Merge pull request #420 from LGFae/delete-nix-tests

delete `build.nix` and the nix tests
This commit is contained in:
Leonardo Gibrowski Faé
2025-05-25 11:36:56 -03:00
committed by GitHub
4 changed files with 2 additions and 76 deletions

View File

@@ -14,5 +14,3 @@ jobs:
uses: ./.github/workflows/dependencies.yml
test:
uses: ./.github/workflows/test.yml
nix-tests:
uses: ./.github/workflows/nix-tests.yml

View File

@@ -1,17 +0,0 @@
name: "Nix-Tests"
on:
workflow_call:
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix flake show
- run: nix flake check --print-build-logs
- run: nix build --print-build-logs

View File

@@ -1,57 +0,0 @@
{
lib,
rustPlatform,
pkg-config,
lz4,
libxkbcommon,
installShellFiles,
scdoc,
nix-gitignore,
wayland,
wayland-protocols,
}: let
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version;
src = nix-gitignore.gitignoreSource [] ./.;
in
rustPlatform.buildRustPackage {
pname = "swww";
inherit src version;
cargoLock.lockFile = ./Cargo.lock;
buildInputs = [
lz4
libxkbcommon
wayland
wayland-protocols
];
doCheck = false; # Integration tests do not work in sandbox environment
nativeBuildInputs = [
pkg-config
installShellFiles
scdoc
];
postInstall = ''
for f in doc/*.scd; do
local page="doc/$(basename "$f" .scd)"
scdoc < "$f" > "$page"
installManPage "$page"
done
installShellCompletion --cmd swww \
--bash completions/swww.bash \
--fish completions/swww.fish \
--zsh completions/_swww
'';
meta = {
description = "Efficient animated wallpaper daemon for wayland, controlled at runtime";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
mainProgram = "swww";
};
}

View File

@@ -41,6 +41,8 @@
pkg-config,
lz4,
libxkbcommon,
wayland,
wayland-protocols,
swww,
}:
mkShell {