nixpkgs-suyu/pkgs/applications/version-management/yadm/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

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