ncspot: cleanup
By following some "best practices"
This commit is contained in:
parent
429b0b4b90
commit
0eef1f6829
@ -35,7 +35,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hrkfdn";
|
owner = "hrkfdn";
|
||||||
repo = "ncspot";
|
repo = "ncspot";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-Lt2IuoiXYgSVPi4u8y16u9m5ya4HdpQme6snvNJrwso=";
|
hash = "sha256-Lt2IuoiXYgSVPi4u8y16u9m5ya4HdpQme6snvNJrwso=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -70,8 +70,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
++ lib.optional withPulseAudio "pulseaudio_backend";
|
++ lib.optional withPulseAudio "pulseaudio_backend";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
|
install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/nscpot.desktop
|
||||||
install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
|
install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/nscpot.png
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
@ -79,12 +79,12 @@ rustPlatform.buildRustPackage rec {
|
|||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes";
|
description = "Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes";
|
||||||
homepage = "https://github.com/hrkfdn/ncspot";
|
homepage = "https://github.com/hrkfdn/ncspot";
|
||||||
changelog = "https://github.com/hrkfdn/ncspot/releases/tag/v${version}";
|
changelog = "https://github.com/hrkfdn/ncspot/releases/tag/v${version}";
|
||||||
license = licenses.bsd2;
|
license = lib.licenses.bsd2;
|
||||||
maintainers = with maintainers; [ liff ];
|
maintainers = with lib.maintainers; [ liff ];
|
||||||
mainProgram = "ncspot";
|
mainProgram = "ncspot";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user