nixpkgs/pkgs/applications/version-management/yadm/default.nix
Travis A. Everett 32e666aa4b yadm: install from build directory instead of $src
Noticed while trying to use substituteInPlace from prePatch that my changes
weren't applying to the installed copy.
2020-04-01 19:39:31 -05:00

43 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, git, gnupg }:
let version = "2.4.0"; in
stdenv.mkDerivation {
pname = "yadm";
inherit version;
buildInputs = [ git gnupg ];
src = fetchFromGitHub {
owner = "TheLocehiliosan";
repo = "yadm";
rev = version;
sha256 = "0kpahznrkxkyj92vrhwjvldg2affi1askgwvpgbs4mg40f92szlp";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
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
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;
maintainers = with stdenv.lib.maintainers; [ abathur ];
platforms = stdenv.lib.platforms.unix;
};
}