git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #87383 from stianlagstad/sl/dstask-0.17

dstask: init at 0.18

commit69ea180bc9fed4e391f7d31d3fc135991d066c4e authorTimo Kaufmann <timokau@zoho.com> dateSat 30 May 2020, 11:48 (6 years ago) parenta7b2e19036eb89
3 files changed+48
maintainers/maintainer-list.nix+6 pkgs/applications/misc/dstask/default.nix+40 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -7426,6 +7426,12 @@
74267426 githubId = 1181362;
74277427 name = "Stefan Junker";
74287428 };
7429+ stianlagstad = {
7430+ email = "stianlagstad@gmail.com";
7431+ github = "stianlagstad";
7432+ githubId = 4340859;
7433+ name = "Stian Lågstad";
7434+ };
74297435 StijnDW = {
74307436 email = "stekke@airmail.cc";
74317437 github = "StijnDW";
pkgs/applications/misc/dstask/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenv, buildGoModule, fetchFromGitHub }:
2+
3+buildGoModule rec {
4+ pname = "dstask";
5+ version = "0.18";
6+
7+ src = fetchFromGitHub {
8+ owner = "naggie";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "16z5zlfj955pzsj0l58835slvpchdaq2vbyx2fjzi6y9xn1z2nd1";
12+ };
13+
14+ # Set vendorSha256 to null because dstask vendors its dependencies (meaning
15+ # that third party dependencies are stored in the repository).
16+ #
17+ # Ref <https://github.com/NixOS/nixpkgs/pull/87383#issuecomment-633204382>
18+ # and <https://github.com/NixOS/nixpkgs/blob/d4226e3a4b5fcf988027147164e86665d382bbfa/pkgs/development/go-modules/generic/default.nix#L18>
19+ vendorSha256 = null;
20+
21+ # The ldflags reduce the executable size by stripping some debug stuff.
22+ # The other variables are set so that the output of dstask version shows the
23+ # git ref and the release version from github.
24+ # Ref <https://github.com/NixOS/nixpkgs/pull/87383#discussion_r432097657>
25+ buildFlagsArray = [ ''
26+ -ldflags=-w -s
27+ -X "github.com/naggie/dstask.VERSION=${version}"
28+ -X "github.com/naggie/dstask.GIT_COMMIT=v${version}"
29+ '' ];
30+
31+ subPackages = [ "cmd/dstask.go" ];
32+
33+ meta = with stdenv.lib; {
34+ description = "Command line todo list with super-reliable git sync";
35+ homepage = src.meta.homepage;
36+ license = licenses.mit;
37+ maintainers = with maintainers; [ stianlagstad foxit64 ];
38+ platforms = platforms.linux;
39+ };
40+}
pkgs/top-level/all-packages.nix+2
@@ -22263,6 +22263,8 @@ in
2226322263
2226422264 taskwarrior = callPackage ../applications/misc/taskwarrior { };
2226522265
22266+ dstask = callPackage ../applications/misc/dstask { };
22267+
2226622268 tasksh = callPackage ../applications/misc/tasksh { };
2226722269
2226822270 taskserver = callPackage ../servers/misc/taskserver { };