2021-04-21 04:12:28 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, git, gnupg, installShellFiles }:
|
2016-07-23 23:00:42 +02:00
|
|
|
|
2021-04-21 04:12:28 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "yadm";
|
2021-09-05 06:40:57 +02:00
|
|
|
version = "3.1.1";
|
2016-07-23 23:00:42 +02:00
|
|
|
|
2019-11-29 14:12:32 +01:00
|
|
|
buildInputs = [ git gnupg ];
|
|
|
|
|
2021-04-21 04:12:28 +02:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2016-08-06 23:59:54 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheLocehiliosan";
|
|
|
|
repo = "yadm";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2021-09-05 06:40:57 +02:00
|
|
|
sha256 = "sha256-bgiRBlqEjDq0gQ0+aUWpFDeE2piFX3Gy2gEAXgChAOk=";
|
2016-07-23 23:00:42 +02:00
|
|
|
};
|
|
|
|
|
2019-11-29 14:12:32 +01:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-02 02:39:31 +02:00
|
|
|
install -Dt $out/bin yadm
|
2019-11-29 14:12:32 +01:00
|
|
|
runHook postInstall
|
2016-07-23 23:00:42 +02:00
|
|
|
'';
|
|
|
|
|
2021-04-21 04:12:28 +02:00
|
|
|
postInstall = ''
|
|
|
|
installManPage yadm.1
|
|
|
|
installShellCompletion --cmd yadm \
|
|
|
|
--zsh completion/zsh/_yadm \
|
|
|
|
--bash completion/bash/yadm
|
|
|
|
'';
|
|
|
|
|
2016-07-23 23:00:42 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/TheLocehiliosan/yadm";
|
2016-07-23 23:00:42 +02:00
|
|
|
description = "Yet Another Dotfiles Manager";
|
|
|
|
longDescription = ''
|
2019-11-29 14:12:32 +01: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 23:00:42 +02:00
|
|
|
'';
|
2021-04-21 04:12:28 +02:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2021-01-15 14:21:58 +01:00
|
|
|
maintainers = with lib.maintainers; [ abathur ];
|
|
|
|
platforms = lib.platforms.unix;
|
2016-07-23 23:00:42 +02:00
|
|
|
};
|
|
|
|
}
|