mirror of
https://github.com/LinuxBeginnings/swww.git
synced 2026-01-12 07:21:01 -03:00
Merge pull request #420 from LGFae/delete-nix-tests
delete `build.nix` and the nix tests
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -14,5 +14,3 @@ jobs:
|
||||
uses: ./.github/workflows/dependencies.yml
|
||||
test:
|
||||
uses: ./.github/workflows/test.yml
|
||||
nix-tests:
|
||||
uses: ./.github/workflows/nix-tests.yml
|
||||
|
||||
17
.github/workflows/nix-tests.yml
vendored
17
.github/workflows/nix-tests.yml
vendored
@@ -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
|
||||
57
build.nix
57
build.nix
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user