2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, git, gnupg }:
|
2016-07-23 22:00:42 +01:00
|
|
|
|
2020-08-31 11:22:26 +01:00
|
|
|
let version = "2.5.0"; in
|
2016-07-23 22:00:42 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "yadm";
|
|
|
|
inherit version;
|
2016-07-23 22:00:42 +01:00
|
|
|
|
2019-11-29 13:12:32 +00:00
|
|
|
buildInputs = [ git gnupg ];
|
|
|
|
|
2016-08-06 22:59:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheLocehiliosan";
|
|
|
|
repo = "yadm";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2020-08-31 11:22:26 +01:00
|
|
|
sha256 = "128qlx8mp7h5ifapqqgsj3fwghn3q6x6ya0y33h5r7gnassd3njr";
|
2016-07-23 22:00:42 +01:00
|
|
|
};
|
|
|
|
|
2019-11-29 13:12:32 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-02 01:39:31 +01:00
|
|
|
install -Dt $out/bin yadm
|
|
|
|
install -Dt $out/share/man/man1 yadm.1
|
|
|
|
install -D completion/yadm.zsh_completion $out/share/zsh/site-functions/_yadm
|
|
|
|
install -D completion/yadm.bash_completion $out/share/bash-completion/completions/yadm.bash
|
2019-11-29 13:12:32 +00:00
|
|
|
runHook postInstall
|
2016-07-23 22:00:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/TheLocehiliosan/yadm";
|
2016-07-23 22:00:42 +01:00
|
|
|
description = "Yet Another Dotfiles Manager";
|
|
|
|
longDescription = ''
|
2019-11-29 13:12:32 +00: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 22:00:42 +01:00
|
|
|
'';
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ abathur ];
|
|
|
|
platforms = lib.platforms.unix;
|
2016-07-23 22:00:42 +01:00
|
|
|
};
|
|
|
|
}
|