mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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 {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yadm";
|
||||
inherit version;
|
||||
version = "3.1.0";
|
||||
|
||||
buildInputs = [ git gnupg ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TheLocehiliosan";
|
||||
repo = "yadm";
|
||||
rev = version;
|
||||
sha256 = "128qlx8mp7h5ifapqqgsj3fwghn3q6x6ya0y33h5r7gnassd3njr";
|
||||
sha256 = "0ga0p28nvqilswa07bzi93adk7wx6d5pgxlacr9wl9v1h6cds92s";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
@ -20,12 +21,16 @@ stdenv.mkDerivation {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
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
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installManPage yadm.1
|
||||
installShellCompletion --cmd yadm \
|
||||
--zsh completion/zsh/_yadm \
|
||||
--bash completion/bash/yadm
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/TheLocehiliosan/yadm";
|
||||
description = "Yet Another Dotfiles Manager";
|
||||
@ -35,7 +40,7 @@ stdenv.mkDerivation {
|
||||
* 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 = lib.licenses.gpl3;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ abathur ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user