nixpkgs/pkgs/applications/version-management/yadm/default.nix
blargg b7387c5cf4 yadm: 2.5.0 -> 3.1.0
Updated completions to pull from the new location.
Switch to using the install helpers.
Update license, gpl3 -> gpl3Plus.
2021-04-27 19:17:18 -07:00

47 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, git, gnupg, installShellFiles }:
stdenv.mkDerivation rec {
pname = "yadm";
version = "3.1.0";
buildInputs = [ git gnupg ];
nativeBuildInputs = [ installShellFiles ];
src = fetchFromGitHub {
owner = "TheLocehiliosan";
repo = "yadm";
rev = version;
sha256 = "0ga0p28nvqilswa07bzi93adk7wx6d5pgxlacr9wl9v1h6cds92s";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dt $out/bin yadm
runHook postInstall
'';
postInstall = ''
installManPage yadm.1
installShellCompletion --cmd yadm \
--zsh completion/zsh/_yadm \
--bash completion/bash/yadm
'';
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 = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ abathur ];
platforms = lib.platforms.unix;
};
}