Skip to content

Commit 41609fd

Browse files
authored
pdd: 1.6 -> 1.7 (#409222)
2 parents 2365292 + cf75508 commit 41609fd

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

pkgs/tools/misc/pdd/default.nix

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
{
22
lib,
3-
fetchFromGitHub,
43
buildPythonApplication,
4+
fetchFromGitHub,
55
python-dateutil,
66
}:
77

88
buildPythonApplication rec {
99
pname = "pdd";
10-
version = "1.6";
10+
version = "1.7";
11+
pyproject = false;
1112

1213
src = fetchFromGitHub {
1314
owner = "jarun";
1415
repo = "pdd";
1516
tag = "v${version}";
16-
sha256 = "sha256-Z+jUFu4VvrgWUtkXMkjspcRJ/JG81X9gc2tnDoCdrsk=";
17+
hash = "sha256-jQCjqQxvJU2oYLSWpFriJIfD0EbqBx59AvRX77pX0Cg=";
1718
};
1819

19-
format = "other";
20+
postPatch = ''
21+
patchShebangs auto-completion/zsh/zsh_completion.py
22+
'';
23+
24+
preInstall = ''
25+
mkdir -p $out/share/bash-completion/compilations
26+
mkdir -p $out/share/zsh/site-functions
27+
mkdir -p $out/share/fish/vendor_completions.d
28+
'';
2029

21-
propagatedBuildInputs = [ python-dateutil ];
30+
dependencies = [ python-dateutil ];
2231

2332
installFlags = [ "PREFIX=$(out)" ];
2433

25-
meta = with lib; {
34+
meta = {
2635
homepage = "https://github.com/jarun/pdd";
2736
description = "Tiny date, time diff calculator";
2837
longDescription = ''
@@ -34,7 +43,7 @@ buildPythonApplication rec {
3443
timezone.
3544
'';
3645
maintainers = [ ];
37-
license = licenses.gpl3;
46+
license = lib.licenses.gpl3Plus;
3847
mainProgram = "pdd";
3948
};
4049
}

0 commit comments

Comments
 (0)