571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
860 B
Nix
34 lines
860 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "timewarrior";
|
|
version = "1.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GothenburgBitFactory";
|
|
repo = "timewarrior";
|
|
rev = "v${version}";
|
|
hash = "sha256-sc4AfdXLuA9evoGU6Z97+Hq7zj9nx093+nPALRkhziQ=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake asciidoctor installShellFiles ];
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd timew \
|
|
--bash completion/timew-completion.bash
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command-line time tracker";
|
|
homepage = "https://timewarrior.net";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
|
|
mainProgram = "timew";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|
|
|