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