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.

42 lines
1.1 KiB
Nix
Raw Normal View History

2023-10-31 15:53:43 +00:00
{ lib, buildNimPackage, fetchFromGitHub, testers }:
buildNimPackage (finalAttrs: {
2023-03-11 17:01:36 +00:00
pname = "nimdow";
2023-08-28 14:51:09 +01:00
version = "0.7.37";
2023-03-11 17:01:36 +00:00
2023-10-31 15:53:43 +00:00
requiredNimVersion = 1;
2023-03-11 17:01:36 +00:00
src = fetchFromGitHub {
owner = "avahe-kellenberger";
2023-10-31 15:53:43 +00:00
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
2023-08-28 14:51:09 +01:00
hash = "sha256-930wDS0UW65QzpUHHOuM25oi/OhFmG0Q7N05ftu7XlI=";
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
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"
'';
2023-10-31 15:53:43 +00:00
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "v${finalAttrs.version}";
};
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
})