2023-03-15 16:39:30 +00:00
|
|
|
{ lib, fetchFromGitHub, nimPackages, libX11, libXft, libXinerama }:
|
|
|
|
nimPackages.buildNimPackage rec {
|
|
|
|
pname = "nimdow";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.37";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "avahe-kellenberger";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-930wDS0UW65QzpUHHOuM25oi/OhFmG0Q7N05ftu7XlI=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = with nimPackages; [ parsetoml x11 safeseq safeset libX11 libXft libXinerama ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -D config.default.toml $out/share/nimdow/config.default.toml
|
|
|
|
install -D nimdow.desktop $out/share/applications/nimdow.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/nimdowpkg/config/configloader.nim --replace "/usr/share/nimdow" "$out/share/nimdow"
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib;
|
|
|
|
src.meta // {
|
|
|
|
description = "Nim based tiling window manager";
|
|
|
|
license = [ licenses.gpl2 ];
|
|
|
|
maintainers = [ maintainers.marcusramberg ];
|
|
|
|
};
|
|
|
|
}
|