blob: d35436b18481fc1b1369cd2f8475f96e1646d940 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ lib, buildNimPackage, fetchFromGitHub, nixosTests, testers }:
buildNimPackage (finalAttrs: {
pname = "nimdow";
version = "0.7.38";
src = fetchFromGitHub {
owner = "avahe-kellenberger";
repo = "nimdow";
rev = "v${finalAttrs.version}";
hash = "sha256-GPu3Z63rFBgCCV7bdBg9cJh5thv2xrv/nSMa5Q/zp48=";
};
lockFile = ./lock.json;
nimFlags = [
"--deepcopy:on"
];
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"
'';
passthru.tests = {
nimdow = nixosTests.nimdow;
version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "v${finalAttrs.version}";
};
};
meta = with lib;
finalAttrs.src.meta // {
description = "Nim based tiling window manager";
platforms = platforms.linux;
license = [ licenses.gpl2 ];
maintainers = [ maintainers.marcusramberg ];
mainProgram = "nimdow";
};
})
|