@@ -0,0 +1,34 @@
1+{ stdenv, fetchurl, fetchFromGitHub }:
2+
3+let version = "1.04"; in
4+stdenv.mkDerivation {
5+ name = "yadm-${version}";
6+
7+ src = fetchFromGitHub {
8+ owner = "TheLocehiliosan";
9+ repo = "yadm";
10+ rev = "${version}";
11+ sha256 = "1g5nz4y63ccxlbz67klm78525ps41ynis8683iayakg4907vd898";
12+ };
13+
14+ buildCommand = ''
15+ mkdir -p $out/bin
16+ mkdir -p $out/share/man/man1
17+ sed -e 's:/bin/bash:/usr/bin/env bash:' $src/yadm > $out/bin/yadm
18+ chmod 755 $out/bin/yadm
19+ install -m 644 $src/yadm.1 $out/share/man/man1/yadm.1
20+ '';
21+
22+ meta = {
23+ homepage = "https://github.com/TheLocehiliosan/yadm";
24+ description = "Yet Another Dotfiles Manager";
25+ longDescription = ''
26+ yadm is a dotfile management tool with 3 main features: Manages files across
27+ systems using a single Git repository. Provides a way to use alternate files on
28+ a specific OS or host. Supplies a method of encrypting confidential data so it
29+ can safely be stored in your repository.
30+ '';
31+ licence = stdenv.lib.licenses.gpl3;
32+ platforms = stdenv.lib.platforms.unix;
33+ };
34+}