Package stasis, the Wayland idle manager
Not available in nixpkgs. Pinned to v1.4.1, the version currently installed on the Arch host.
This commit is contained in:
@@ -14,22 +14,27 @@
|
||||
flake = false;
|
||||
};
|
||||
moonlock = {
|
||||
url = "path:/home/kresdo/moonlock-local";
|
||||
url = "git+https://gitea.moonarch.de/nevaforget/moonlock.git?ref=refs/tags/v0.6.21";
|
||||
flake = false;
|
||||
};
|
||||
# Note the repo name: the project is moongreet, the repo is greetd-moongreet.
|
||||
moongreet = {
|
||||
url = "path:/home/kresdo/moongreet-local";
|
||||
url = "git+https://gitea.moonarch.de/nevaforget/greetd-moongreet.git?ref=refs/tags/v0.10.2";
|
||||
flake = false;
|
||||
};
|
||||
moonset = {
|
||||
url = "path:/home/kresdo/moonset-local";
|
||||
url = "git+https://gitea.moonarch.de/nevaforget/moonset.git?ref=refs/tags/v0.9.2";
|
||||
flake = false;
|
||||
};
|
||||
sweet-cursors = {
|
||||
url = "git+https://gitea.moonarch.de/nevaforget/Sweet-cursors.git";
|
||||
flake = false;
|
||||
};
|
||||
# Not packaged in nixpkgs.
|
||||
stasis = {
|
||||
url = "github:saltnpepper97/stasis/v1.4.1";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
@@ -57,6 +62,11 @@
|
||||
src = inputs.sweet-cursors;
|
||||
version = "0-unstable";
|
||||
};
|
||||
|
||||
stasis = pkgs.callPackage ./pkgs/stasis.nix {
|
||||
src = inputs.stasis;
|
||||
version = "1.4.1";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# ABOUTME: Nix build recipe for stasis, the Wayland idle manager.
|
||||
# ABOUTME: Not in nixpkgs; upstream is saltnpepper97/stasis on GitHub.
|
||||
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, wayland
|
||||
, src
|
||||
, version
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "stasis";
|
||||
inherit version src;
|
||||
|
||||
cargoLock.lockFile = "${src}/Cargo.lock";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ wayland ];
|
||||
|
||||
meta = {
|
||||
description = "Wayland idle manager with sequential, configurable timeouts";
|
||||
homepage = "https://github.com/saltnpepper97/stasis";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "stasis";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user