emacsPackages.youtube-dl: use trivialBuild
This commit is contained in:
parent
5fa31a4962
commit
a988377549
1 changed files with 12 additions and 21 deletions
|
@ -1,8 +1,12 @@
|
||||||
{ stdenv, fetchFromGitHub, emacs, lib }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, emacs
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
trivialBuild {
|
||||||
pname = "youtube-dl";
|
pname = "youtube-dl";
|
||||||
version = "2018-10-12";
|
version = "0.0.0+unstable=2018-10-12";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "skeeto";
|
owner = "skeeto";
|
||||||
|
@ -13,24 +17,11 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
buildInputs = [ emacs ];
|
buildInputs = [ emacs ];
|
||||||
|
|
||||||
buildPhase = ''
|
meta = with lib; {
|
||||||
runHook preBuild
|
description = "Emacs youtube-dl download manager";
|
||||||
emacs -L . --batch -f batch-byte-compile *.el
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
install -d $out/share/emacs/site-lisp
|
|
||||||
install *.el *.elc $out/share/emacs/site-lisp
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Emacs frontend to the youtube-dl utility";
|
|
||||||
homepage = "https://github.com/skeeto/youtube-dl-emacs";
|
homepage = "https://github.com/skeeto/youtube-dl-emacs";
|
||||||
license = lib.licenses.unlicense;
|
license = licenses.unlicense;
|
||||||
maintainers = with lib.maintainers; [ leungbk ];
|
maintainers = with maintainers; [ leungbk ];
|
||||||
platforms = emacs.meta.platforms;
|
inherit (emacs.meta) platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue