mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ lib, buildNimPackage, fetchFromGitHub, testers }:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
pname = "nimdow";
|
|
|
|
version = "0.7.37";
|
|
|
|
requiredNimVersion = 1;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "avahe-kellenberger";
|
|
repo = finalAttrs.pname;
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-930wDS0UW65QzpUHHOuM25oi/OhFmG0Q7N05ftu7XlI=";
|
|
};
|
|
|
|
lockFile = ./lock.json;
|
|
|
|
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.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
version = "v${finalAttrs.version}";
|
|
};
|
|
|
|
meta = with lib;
|
|
finalAttrs.src.meta // {
|
|
description = "Nim based tiling window manager";
|
|
license = [ licenses.gpl2 ];
|
|
maintainers = [ maintainers.marcusramberg ];
|
|
mainProgram = "nimdow";
|
|
};
|
|
})
|