mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
commit
9a17f32539
58
pkgs/applications/window-managers/shod/default.nix
Normal file
58
pkgs/applications/window-managers/shod/default.nix
Normal file
@ -0,0 +1,58 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, writeText
|
||||
, fontconfig
|
||||
, libX11
|
||||
, libXft
|
||||
, libXinerama
|
||||
, libXpm
|
||||
, libXrender
|
||||
, conf ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "shod";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "phillbush";
|
||||
repo = "shod";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-jrPuI3ADppqaJ2y9GksiJZZd4LtN1P5yjWwlf9VuYDc=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
fontconfig
|
||||
libX11
|
||||
libXft
|
||||
libXinerama
|
||||
libXpm
|
||||
libXrender
|
||||
];
|
||||
|
||||
postPatch =
|
||||
let
|
||||
configFile =
|
||||
if lib.isDerivation conf || builtins.isPath conf
|
||||
then conf else writeText "config.h" conf;
|
||||
in
|
||||
lib.optionalString (conf != null) "cp ${configFile} config.h";
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A mouse-based window manager that can tile windows inside floating containers";
|
||||
longDescription = ''
|
||||
shod is a multi-monitor floating reparenting X11 window manager that
|
||||
supports tiled and tabbed containers. shod sets no keybindings, reads no
|
||||
configuration, and works only via mouse with a given key modifier (Alt by
|
||||
default) and by responding to client messages sent by the shodc utility
|
||||
(shod's remote controller).
|
||||
'';
|
||||
homepage = "https://github.com/phillbush/shod";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ azahi ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
@ -28780,6 +28780,8 @@ with pkgs;
|
||||
|
||||
scudcloud = callPackage ../applications/networking/instant-messengers/scudcloud { };
|
||||
|
||||
shod = callPackage ../applications/window-managers/shod { };
|
||||
|
||||
shotcut = libsForQt5.callPackage ../applications/video/shotcut { };
|
||||
|
||||
shogun = callPackage ../applications/science/machine-learning/shogun {
|
||||
|
Loading…
Reference in New Issue
Block a user