2016-08-06 22:59:54 +01:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub }:
|
2016-07-23 22:00:42 +01:00
|
|
|
|
2016-10-29 12:26:07 +01:00
|
|
|
let version = "1.05"; in
|
2016-07-23 22:00:42 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "yadm-${version}";
|
|
|
|
|
2016-08-06 22:59:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheLocehiliosan";
|
|
|
|
repo = "yadm";
|
|
|
|
rev = "${version}";
|
2016-10-29 12:26:07 +01:00
|
|
|
sha256 = "11bqgz28qzgb3iz8xvda9z0mh5r1a9m032pqm772ypiixsfz8hdd";
|
2016-07-23 22:00:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1
|
2016-08-06 22:59:54 +01:00
|
|
|
sed -e 's:/bin/bash:/usr/bin/env bash:' $src/yadm > $out/bin/yadm
|
2016-07-23 22:00:42 +01:00
|
|
|
chmod 755 $out/bin/yadm
|
2016-08-06 22:59:54 +01:00
|
|
|
install -m 644 $src/yadm.1 $out/share/man/man1/yadm.1
|
2016-07-23 22:00:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2016-09-19 11:52:22 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-07-23 22:00:42 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|