nixpkgs/pkgs/applications/version-management/yadm/default.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, git, gnupg, installShellFiles }:
2016-07-23 21:00:42 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "yadm";
version = "3.1.0";
2016-07-23 21:00:42 +00:00
buildInputs = [ git gnupg ];
nativeBuildInputs = [ installShellFiles ];
2016-08-06 21:59:54 +00:00
src = fetchFromGitHub {
owner = "TheLocehiliosan";
repo = "yadm";
2019-09-08 23:38:31 +00:00
rev = version;
sha256 = "0ga0p28nvqilswa07bzi93adk7wx6d5pgxlacr9wl9v1h6cds92s";
2016-07-23 21:00:42 +00:00
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dt $out/bin yadm
runHook postInstall
2016-07-23 21:00:42 +00:00
'';
postInstall = ''
installManPage yadm.1
installShellCompletion --cmd yadm \
--zsh completion/zsh/_yadm \
--bash completion/bash/yadm
'';
2016-07-23 21:00:42 +00:00
meta = {
homepage = "https://github.com/TheLocehiliosan/yadm";
2016-07-23 21:00:42 +00:00
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.
2016-07-23 21:00:42 +00:00
'';
license = lib.licenses.gpl3Plus;
2021-01-15 13:21:58 +00:00
maintainers = with lib.maintainers; [ abathur ];
platforms = lib.platforms.unix;
2016-07-23 21:00:42 +00:00
};
}