From f86a04f88898dd87717c2393ec12247dcd631376 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 13 Jan 2022 18:39:11 +0100 Subject: [PATCH] pkgs: add psst --- pkgs/default.nix | 2 ++ pkgs/psst/default.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/psst/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index a179dfb..af39384 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -26,6 +26,8 @@ pkgs.lib.makeScope pkgs.newScope (pkgs: { nolimips = pkgs.callPackage ./nolimips { }; + psst = pkgs.callPackage ./psst { }; + rofi-bluetooth = pkgs.callPackage ./rofi-bluetooth { }; unbound-zones-adblock = pkgs.callPackage ./unbound-zones-adblock { }; diff --git a/pkgs/psst/default.nix b/pkgs/psst/default.nix new file mode 100644 index 0000000..6eca44b --- /dev/null +++ b/pkgs/psst/default.nix @@ -0,0 +1,34 @@ +{ lib, alsa-lib, cairo, dbus, fetchFromGitHub, gtk3, openssl, pkg-config, rustPlatform }: +rustPlatform.buildRustPackage rec { + pname = "psst"; + version = "unstable-2022-01-13"; + + src = fetchFromGitHub { + owner = "jpochyla"; + repo = "psst"; + rev = "8f142a3232a706537c8477bff43d2e52309f6b78"; + sha256 = "sha256-YA9p6KHuZXt43OrfShO5d3Cj8L8GPpczRQlncJqM7QI="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + alsa-lib + cairo + dbus + gtk3 + openssl + ]; + + cargoSha256 = "sha256-iA/ja7B73JyiXQ9kBzk1C5wtX+HPBrngCS+8rFDHbcs="; + + meta = with lib; { + description = "Fast and multi-platform Spotify client with native GUI"; + homepage = "https://github.com/jpochyla/psst"; + platforms = platforms.linux; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ ambroisie ]; + }; +}