clerk: unstable-2016-10-14 -> unstable-2023-01-14
This commit is contained in:
parent
b13b23f4f0
commit
1652c8cf87
|
@ -3,55 +3,79 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, rofi
|
, rofi
|
||||||
|
, tmux
|
||||||
|
, fzf
|
||||||
, mpc-cli
|
, mpc-cli
|
||||||
, perl
|
, perl
|
||||||
, util-linux
|
, util-linux
|
||||||
, python3Packages
|
|
||||||
, libnotify
|
, libnotify
|
||||||
|
, perlPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "clerk";
|
pname = "clerk";
|
||||||
version = "unstable-2016-10-14";
|
version = "unstable-2023-01-14";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "carnager";
|
owner = "carnager";
|
||||||
repo = "clerk";
|
repo = "clerk";
|
||||||
rev = "875963bcae095ac1db174627183c76ebe165f787";
|
rev = "90c0e702fc4f8b65f0ced7b8944c063629e3686d";
|
||||||
sha256 = "0y045my65hr3hjyx13jrnyg6g3wb41phqb1m7azc4l6vx6r4124b";
|
hash = "sha256-nkm1vJaWgN8gOkmAbsjPfstax8TwUSkEzYKJ1iEz1hM";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace clerk_rating_client.service \
|
||||||
|
--replace "/usr" "$out"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ python3Packages.mpd2 ];
|
|
||||||
|
buildInputs = with perlPackages; [
|
||||||
|
perl
|
||||||
|
DataMessagePack
|
||||||
|
DataSectionSimple
|
||||||
|
ConfigSimple
|
||||||
|
TryTiny
|
||||||
|
IPCRun
|
||||||
|
HTTPDate
|
||||||
|
FileSlurper
|
||||||
|
ArrayUtils
|
||||||
|
NetMPD
|
||||||
|
];
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
installPhase =
|
installPhase = ''
|
||||||
let
|
runHook preInstall
|
||||||
|
|
||||||
|
install -D clerk.pl $out/bin/clerk
|
||||||
|
install -D clerk_rating_client $out/bin/clerk_rating_client
|
||||||
|
install -D clerk_rating_client.service $out/lib/systemd/user/clerk_rating_client.service
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = let
|
||||||
binPath = lib.makeBinPath [
|
binPath = lib.makeBinPath [
|
||||||
libnotify
|
libnotify
|
||||||
mpc-cli
|
mpc-cli
|
||||||
perl
|
|
||||||
rofi
|
rofi
|
||||||
|
tmux
|
||||||
|
fzf
|
||||||
util-linux
|
util-linux
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
runHook preInstall
|
wrapProgram $out/bin/clerk --set PERL5LIB $PERL5LIB --prefix PATH : "${binPath}"
|
||||||
|
wrapProgram $out/bin/clerk_rating_client --set PERL5LIB $PERL5LIB --prefix PATH : "${binPath}"
|
||||||
DESTDIR=$out PREFIX=/ make install
|
|
||||||
wrapProgram $out/bin/clerk --prefix PATH : "${binPath}"
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An MPD client built on top of rofi";
|
description = "An MPD client based on rofi/fzf";
|
||||||
homepage = "https://github.com/carnager/clerk";
|
homepage = "https://github.com/carnager/clerk";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
broken = true; # not compatible with current version of rofi
|
maintainers = with maintainers; [ anderspapitto rewine ];
|
||||||
maintainers = with maintainers; [ anderspapitto ];
|
mainProgram = "clerk";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue