2019-11-29 05:12:32 -08:00
|
|
|
{ stdenv, fetchFromGitHub, git, gnupg }:
|
2016-07-23 14:00:42 -07:00
|
|
|
|
2020-02-10 13:57:25 -08:00
|
|
|
let version = "2.4.0"; in
|
2016-07-23 14:00:42 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "yadm";
|
|
|
|
inherit version;
|
2016-07-23 14:00:42 -07:00
|
|
|
|
2019-11-29 05:12:32 -08:00
|
|
|
buildInputs = [ git gnupg ];
|
|
|
|
|
2016-08-06 14:59:54 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheLocehiliosan";
|
|
|
|
repo = "yadm";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2020-02-10 13:57:25 -08:00
|
|
|
sha256 = "0kpahznrkxkyj92vrhwjvldg2affi1askgwvpgbs4mg40f92szlp";
|
2016-07-23 14:00:42 -07:00
|
|
|
};
|
|
|
|
|
2019-11-29 05:12:32 -08:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dt $out/bin $src/yadm
|
|
|
|
install -Dt $out/share/man/man1 $src/yadm.1
|
|
|
|
install -D $src/completion/yadm.zsh_completion $out/share/zsh/site-functions/_yadm
|
|
|
|
install -D $src/completion/yadm.bash_completion $out/share/bash-completion/completions/yadm.bash
|
|
|
|
runHook postInstall
|
2016-07-23 14:00:42 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/TheLocehiliosan/yadm";
|
2016-07-23 14:00:42 -07:00
|
|
|
description = "Yet Another Dotfiles Manager";
|
|
|
|
longDescription = ''
|
2019-11-29 05:12:32 -08:00
|
|
|
yadm is a dotfile management tool with 3 main features:
|
|
|
|
* Manages files across systems using a single Git repository.
|
|
|
|
* Provides a way to use alternate files on a specific OS or host.
|
|
|
|
* Supplies a method of encrypting confidential data so it can safely be stored in your repository.
|
2016-07-23 14:00:42 -07:00
|
|
|
'';
|
2016-09-19 03:52:22 -07:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-07-23 14:00:42 -07:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|