feat(river-shifttags): add river-shifttags package
This commit is contained in:
parent
0ca0c28cbd
commit
fba76fb410
2 changed files with 79 additions and 0 deletions
26
home-manager/river-shifttags/flake.lock
generated
Normal file
26
home-manager/river-shifttags/flake.lock
generated
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1722869614,
|
||||
"narHash": "sha256-7ojM1KSk3mzutD7SkrdSflHXEujPvW1u7QuqWoTLXQU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "883180e6550c1723395a3a342f830bfc5c371f6b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-24.05",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
53
home-manager/river-shifttags/flake.nix
Normal file
53
home-manager/river-shifttags/flake.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
description = "A small utility for the river Wayland compositor to rotate the focused tags.";
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-24.05";
|
||||
};
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
dependencies = with pkgs; [
|
||||
pkg-config
|
||||
pixman
|
||||
wayland
|
||||
wayland-scanner
|
||||
];
|
||||
version = "0.2.2";
|
||||
in
|
||||
{
|
||||
packages.${system}.default = pkgs.stdenv.mkDerivation {
|
||||
pname = "river-shifttags";
|
||||
inherit version;
|
||||
|
||||
src = pkgs.fetchFromGitLab {
|
||||
owner = "logistic-bot";
|
||||
repo = "river-shifttags";
|
||||
rev = "1cb09ab24dc5fd08453bbbb03982a9e544c36eae";
|
||||
hash = "sha256-Fvp7VucysYjoMq3hbeIQF6PeyBveHw2y+AsTLAy2fYw=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
nativeBuildInputs = dependencies;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/usr/local/bin
|
||||
mkdir -p $man/share/man
|
||||
install -Dm 755 -t "$out/bin" ./river-shifttags
|
||||
install -Dm 644 -t "$man/share/man/man1" ./river-shifttags.1
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/river-shifttags --help
|
||||
'';
|
||||
};
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
packages = dependencies ++ [
|
||||
pkgs.gdb
|
||||
];
|
||||
shellHook = "exec zsh";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue