depot/third_party/nixpkgs/pkgs/by-name/ni/nimdow/package.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

46 lines
1.1 KiB
Nix

{ lib, buildNimPackage, fetchFromGitHub, nixosTests, testers }:
buildNimPackage (finalAttrs: {
pname = "nimdow";
version = "0.7.39";
src = fetchFromGitHub {
owner = "avahe-kellenberger";
repo = "nimdow";
rev = "v${finalAttrs.version}";
hash = "sha256-9gYlVuKDHCs6yaY1b6dJgwQUJdko6npjom4ab7nKZ7w=";
};
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";
};
})