2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, git, gnupg }:
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
let version = "2.5.0"; in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "yadm";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
buildInputs = [ git gnupg ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheLocehiliosan";
|
|
|
|
repo = "yadm";
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "128qlx8mp7h5ifapqqgsj3fwghn3q6x6ya0y33h5r7gnassd3njr";
|
2020-04-24 23:36:52 +00: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/TheLocehiliosan/yadm";
|
|
|
|
description = "Yet Another Dotfiles Manager";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|