Skip to content

Commit

Permalink
shortwave: 3.2.0 -> 4.0.1, move to by-name (#352786)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Nov 2, 2024
2 parents 397a254 + 27169a4 commit af46f3f
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 89 deletions.
87 changes: 0 additions & 87 deletions pkgs/applications/audio/shortwave/default.nix

This file was deleted.

88 changes: 88 additions & 0 deletions pkgs/by-name/sh/shortwave/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
stdenv,
lib,
fetchFromGitLab,
cargo,
dbus,
desktop-file-utils,
gdk-pixbuf,
gettext,
gitMinimal,
glib,
gst_all_1,
gtk4,
libadwaita,
meson,
ninja,
openssl,
pkg-config,
rustPlatform,
rustc,
sqlite,
wrapGAppsHook4,
libshumate,
libseccomp,
lcms2,
}:

stdenv.mkDerivation rec {
pname = "shortwave";
version = "4.0.1";

src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Shortwave";
rev = version;
sha256 = "sha256-W1eOMyiooDesI13lOze/JcxzhSSxYOW6FOY85NkVyps=";
};

cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-O5K5aNcWwUYkaJbGzTzS3FdNbEsQsdliyi0YShw+6PU=";
};

nativeBuildInputs = [
desktop-file-utils
gettext
gitMinimal
glib # for glib-compile-schemas
meson
ninja
pkg-config
cargo
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
];

buildInputs =
[
dbus
gdk-pixbuf
glib
gtk4
libadwaita
openssl
sqlite
libshumate
libseccomp
lcms2
]
++ (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);

meta = {
homepage = "https://gitlab.gnome.org/World/Shortwave";
description = "Find and listen to internet radio stations";
mainProgram = "shortwave";
maintainers = with lib.maintainers; [ lasandell ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32182,8 +32182,6 @@ with pkgs;

shipments = callPackage ../applications/misc/shipments { };

shortwave = callPackage ../applications/audio/shortwave { };

shotgun = callPackage ../tools/graphics/shotgun { };

shot-scraper = callPackage ../tools/graphics/shot-scraper { };
Expand Down

0 comments on commit af46f3f

Please sign in to comment.