2024-04-21 15:54:59 +00:00
|
|
|
{ lib, buildNimPackage, fetchFromGitHub, nixosTests, testers }:
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
buildNimPackage (finalAttrs: {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "nimdow";
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.7.38";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "avahe-kellenberger";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = finalAttrs.pname;
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-GPu3Z63rFBgCCV7bdBg9cJh5thv2xrv/nSMa5Q/zp48=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
lockFile = ./lock.json;
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nimFlags = [
|
|
|
|
"--deepcopy:on"
|
|
|
|
];
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
nimdow = nixosTests.nimdow;
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
version = "v${finalAttrs.version}";
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
meta = with lib;
|
2024-01-02 11:29:13 +00:00
|
|
|
finalAttrs.src.meta // {
|
2023-03-15 16:39:30 +00:00
|
|
|
description = "Nim based tiling window manager";
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = platforms.linux;
|
2023-03-15 16:39:30 +00:00
|
|
|
license = [ licenses.gpl2 ];
|
|
|
|
maintainers = [ maintainers.marcusramberg ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "nimdow";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|