1 { lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
6 goPackagePath = "github.com/oniony/TMSU";
8 src = fetchFromGitHub {
12 sha256 = "0834hah7p6ad81w60ifnxyh9zn09ddfgrll04kwjxwp7ypbv38wq";
17 nativeBuildInputs = [ installShellFiles ];
20 mv go/src/${goPackagePath} src
21 mv src/src/${goPackagePath} go/src/${goPackagePath}
22 export GOPATH=$PWD:$GOPATH
26 # can't do "mv TMSU tmsu" on case-insensitive filesystems
27 mv $out/bin/{TMSU,tmsu.tmp}
28 mv $out/bin/{tmsu.tmp,tmsu}
30 cp src/misc/bin/* $out/bin/
31 installManPage src/misc/man/tmsu.1
32 installShellCompletion --zsh src/misc/zsh/_tmsu
36 homepage = "http://www.tmsu.org";
37 description = "A tool for tagging your files using a virtual filesystem";
38 maintainers = with maintainers; [ pSub ];
39 license = licenses.gpl3Plus;
40 platforms = platforms.unix;