···11+{ stdenv, fetchurl, git, bash }:
22+33+let version = "1.04"; in
44+let link = "https://raw.githubusercontent.com/TheLocehiliosan/yadm/${version}"; in
55+stdenv.mkDerivation {
66+ name = "yadm-${version}";
77+ isLibrary = false;
88+ isExecutable = true;
99+1010+ exe = fetchurl {
1111+ url = "${link}/yadm";
1212+ sha256 = "c2a7802e45570d5123f9e5760f6f92f1205f340ce155b47b065e1a1844145067";
1313+ };
1414+1515+ man = fetchurl {
1616+ url = "${link}/yadm.1";
1717+ sha256 = "868755b19b9115cceb78202704a83ee204c2921646dd7814f8c25dd237ce09b2";
1818+ };
1919+2020+ buildCommand = ''
2121+ mkdir -p $out/bin
2222+ mkdir -p $out/share/man/man1
2323+ sed -e 's:/bin/bash:/usr/bin/env bash:' $exe > $out/bin/yadm
2424+ chmod 755 $out/bin/yadm
2525+ install -m 644 $man $out/share/man/man1/yadm.1
2626+ '';
2727+2828+ meta = {
2929+ homepage = "https://github.com/TheLocehiliosan/yadm";
3030+ description = "Yet Another Dotfiles Manager";
3131+ longDescription = ''
3232+ yadm is a dotfile management tool with 3 main features: Manages files across
3333+ systems using a single Git repository. Provides a way to use alternate files on
3434+ a specific OS or host. Supplies a method of encrypting confidential data so it
3535+ can safely be stored in your repository.
3636+ '';
3737+ licence = stdenv.lib.licenses.gpl3;
3838+ platforms = stdenv.lib.platforms.unix;
3939+ };
4040+}
4141+4242+