2020-05-11 05:42:46 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, fuse, installShellFiles }:
|
2014-12-13 22:48:28 +00:00
|
|
|
|
2020-04-22 15:00:09 +00:00
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tmsu";
|
2020-04-22 15:00:09 +00:00
|
|
|
version = "0.7.5";
|
|
|
|
goPackagePath = "github.com/oniony/TMSU";
|
2014-12-13 22:48:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oniony";
|
|
|
|
repo = "tmsu";
|
|
|
|
rev = "v${version}";
|
2020-04-22 15:00:09 +00:00
|
|
|
sha256 = "0834hah7p6ad81w60ifnxyh9zn09ddfgrll04kwjxwp7ypbv38wq";
|
2014-12-13 22:48:28 +00:00
|
|
|
};
|
|
|
|
|
2020-04-22 15:00:09 +00:00
|
|
|
goDeps = ./deps.nix;
|
2014-12-13 22:48:28 +00:00
|
|
|
|
2020-04-22 15:00:09 +00:00
|
|
|
buildInputs = [ fuse ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2014-12-13 22:48:28 +00:00
|
|
|
|
2020-04-22 15:00:09 +00:00
|
|
|
preBuild = ''
|
|
|
|
mv go/src/${goPackagePath} src
|
|
|
|
mv src/src/${goPackagePath} go/src/${goPackagePath}
|
|
|
|
export GOPATH=$PWD:$GOPATH
|
2014-12-13 22:48:28 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-22 15:00:09 +00:00
|
|
|
postInstall = ''
|
2020-05-11 05:42:46 +00:00
|
|
|
mv $out/bin/{TMSU,tmsu}
|
|
|
|
cp src/misc/bin/* $out/bin/
|
2020-04-22 15:00:09 +00:00
|
|
|
installManPage src/misc/man/tmsu.1
|
|
|
|
installShellCompletion --zsh src/misc/zsh/_tmsu
|
2014-12-13 22:48:28 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.tmsu.org";
|
2014-12-13 22:48:28 +00:00
|
|
|
description = "A tool for tagging your files using a virtual filesystem";
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
license = licenses.gpl3;
|
2018-03-09 17:47:05 +00:00
|
|
|
platforms = platforms.linux;
|
2014-12-13 22:48:28 +00:00
|
|
|
};
|
2015-02-08 10:44:20 +00:00
|
|
|
}
|