2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2016-07-23 21:00:42 +00:00
|
|
|
|
2018-01-05 17:06:13 +00:00
|
|
|
let version = "1.12.0"; in
|
2016-07-23 21:00:42 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "yadm-${version}";
|
|
|
|
|
2016-08-06 21:59:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheLocehiliosan";
|
|
|
|
repo = "yadm";
|
|
|
|
rev = "${version}";
|
2018-01-05 17:06:13 +00:00
|
|
|
sha256 = "0873jgks7dpfkj5km1jchxdrhf7lia70p0f8zsrh9p4crj5f4pc6";
|
2016-07-23 21:00:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1
|
2018-12-21 06:08:50 +00:00
|
|
|
mkdir -p $out/share/zsh/site-functions
|
|
|
|
mkdir -p $out/share/bash-completion/completions
|
2016-08-06 21:59:54 +00:00
|
|
|
sed -e 's:/bin/bash:/usr/bin/env bash:' $src/yadm > $out/bin/yadm
|
2016-07-23 21:00:42 +00:00
|
|
|
chmod 755 $out/bin/yadm
|
2016-08-06 21:59:54 +00:00
|
|
|
install -m 644 $src/yadm.1 $out/share/man/man1/yadm.1
|
2018-12-21 06:08:50 +00:00
|
|
|
install -m644 $src/completion/yadm.zsh_completion $out/share/zsh/site-functions/_yadm
|
|
|
|
install -m644 $src/completion/yadm.bash_completion $out/share/bash-completion/completions/yadm.bash
|
2016-07-23 21:00:42 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 20:03:30 +00:00
|
|
|
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-09-19 10:52:22 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-07-23 21:00:42 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|