wmderland: init at 2020-07-17
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 17a4944..33406f3 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -10,7 +10,7 @@ include(BuildType)
|
||||
# Request C++14 standard, using new CMake variables.
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto -Wall")
|
||||
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||
|
||||
# If the BuildType is Debug, then add -rdynamic.
|
||||
# (used to print stacktrace with function names)
|
||||
@@ -0,0 +1,49 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, libnotify, libX11, xorgproto, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "wmderland";
|
||||
version = "unstable-2020-07-17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aesophor";
|
||||
repo = "wmderland";
|
||||
rev = "a40a3505dd735b401d937203ab6d8d1978307d72";
|
||||
sha256 = "0npmlnybblp82mfpinjbz7dhwqgpdqc1s63wc1zs8mlcs19pdh98";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
cmakeBuildType = "MinSizeRel";
|
||||
|
||||
patches = [ ./0001-remove-flto.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/util.cc \
|
||||
--replace "notify-send" "${libnotify}/bin/notify-send"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
xorgproto
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm0644 -t $out/share/wmderland/contrib $src/example/config
|
||||
install -Dm0644 -t $out/share/xsessions $src/example/wmderland.desktop
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests.basic = nixosTests.wmderland;
|
||||
providedSessions = [ "wmderland" ];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modern and minimal X11 tiling window manager";
|
||||
homepage = "https://github.com/aesophor/wmderland";
|
||||
license = licenses.mit;
|
||||
platforms = libX11.meta.platforms;
|
||||
maintainers = with maintainers; [ takagiy ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, libX11, xorgproto }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "wmderlandc";
|
||||
version = "unstable-2020-07-17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aesophor";
|
||||
repo = "wmderland";
|
||||
rev = "a40a3505dd735b401d937203ab6d8d1978307d72";
|
||||
sha256 = "0npmlnybblp82mfpinjbz7dhwqgpdqc1s63wc1zs8mlcs19pdh98";
|
||||
};
|
||||
|
||||
sourceRoot = "source/ipc-client";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
xorgproto
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tiny program to interact with wmderland";
|
||||
homepage = "https://github.com/aesophor/wmderland/tree/master/ipc-client";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ takagiy ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user