nixpkgs/pkgs/by-name/ni/nimdow/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildNimPackage, fetchFromGitHub, nixosTests, testers }:
2023-10-31 15:53:43 +00:00
buildNimPackage (finalAttrs: {
2023-03-11 17:01:36 +00:00
pname = "nimdow";
2024-04-25 22:12:52 +01:00
version = "0.7.38";
2023-10-31 15:53:43 +00:00
2023-03-11 17:01:36 +00:00
src = fetchFromGitHub {
owner = "avahe-kellenberger";
repo = "nimdow";
2023-10-31 15:53:43 +00:00
rev = "v${finalAttrs.version}";
2024-04-25 22:12:52 +01:00
hash = "sha256-GPu3Z63rFBgCCV7bdBg9cJh5thv2xrv/nSMa5Q/zp48=";
2023-03-11 17:01:36 +00:00
};
2023-10-31 15:53:43 +00:00
lockFile = ./lock.json;
2023-03-11 17:01:36 +00:00
2024-04-25 22:12:52 +01:00
nimFlags = [
"--deepcopy:on"
];
2023-03-11 17:01:36 +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"
'';
passthru.tests = {
nimdow = nixosTests.nimdow;
version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "v${finalAttrs.version}";
};
2023-10-31 15:53:43 +00:00
};
2023-03-11 17:01:36 +00:00
meta = with lib;
2023-10-31 15:53:43 +00:00
finalAttrs.src.meta // {
2023-03-11 17:01:36 +00:00
description = "Nim based tiling window manager";
platforms = platforms.linux;
2023-03-11 17:01:36 +00:00
license = [ licenses.gpl2 ];
maintainers = [ maintainers.marcusramberg ];
2023-11-27 01:17:53 +00:00
mainProgram = "nimdow";
2023-03-11 17:01:36 +00:00
};
2023-10-31 15:53:43 +00:00
})