yadm: 2.5.0 -> 3.1.0
Updated completions to pull from the new location. Switch to using the install helpers. Update license, gpl3 -> gpl3Plus.
This commit is contained in:
parent
4f8cfd1c2e
commit
b7387c5cf4
|
@ -1,17 +1,18 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, git, gnupg }:
|
{ lib, stdenv, fetchFromGitHub, git, gnupg, installShellFiles }:
|
||||||
|
|
||||||
let version = "2.5.0"; in
|
stdenv.mkDerivation rec {
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "yadm";
|
pname = "yadm";
|
||||||
inherit version;
|
version = "3.1.0";
|
||||||
|
|
||||||
buildInputs = [ git gnupg ];
|
buildInputs = [ git gnupg ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "TheLocehiliosan";
|
owner = "TheLocehiliosan";
|
||||||
repo = "yadm";
|
repo = "yadm";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "128qlx8mp7h5ifapqqgsj3fwghn3q6x6ya0y33h5r7gnassd3njr";
|
sha256 = "0ga0p28nvqilswa07bzi93adk7wx6d5pgxlacr9wl9v1h6cds92s";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
@ -20,12 +21,16 @@ stdenv.mkDerivation {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -Dt $out/bin yadm
|
install -Dt $out/bin yadm
|
||||||
install -Dt $out/share/man/man1 yadm.1
|
|
||||||
install -D completion/yadm.zsh_completion $out/share/zsh/site-functions/_yadm
|
|
||||||
install -D completion/yadm.bash_completion $out/share/bash-completion/completions/yadm.bash
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage yadm.1
|
||||||
|
installShellCompletion --cmd yadm \
|
||||||
|
--zsh completion/zsh/_yadm \
|
||||||
|
--bash completion/bash/yadm
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/TheLocehiliosan/yadm";
|
homepage = "https://github.com/TheLocehiliosan/yadm";
|
||||||
description = "Yet Another Dotfiles Manager";
|
description = "Yet Another Dotfiles Manager";
|
||||||
|
@ -35,7 +40,7 @@ stdenv.mkDerivation {
|
||||||
* Provides a way to use alternate files on a specific OS or host.
|
* 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.
|
* Supplies a method of encrypting confidential data so it can safely be stored in your repository.
|
||||||
'';
|
'';
|
||||||
license = lib.licenses.gpl3;
|
license = lib.licenses.gpl3Plus;
|
||||||
maintainers = with lib.maintainers; [ abathur ];
|
maintainers = with lib.maintainers; [ abathur ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue