diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2021-03-14 17:20:58 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2021-03-14 17:48:27 +0100 |
commit | e3b0f976d44d1b4fee907496d904e3b648d72c26 (patch) | |
tree | 88c377fcb8c46d3d7417649697a1bd71e68fd301 /pkgs/applications/audio/shortwave | |
parent | 4853c6369d5fd0af478091812b4de5b2789bd975 (diff) | |
download | nixpkgs-e3b0f976d44d1b4fee907496d904e3b648d72c26.tar nixpkgs-e3b0f976d44d1b4fee907496d904e3b648d72c26.tar.gz nixpkgs-e3b0f976d44d1b4fee907496d904e3b648d72c26.tar.bz2 nixpkgs-e3b0f976d44d1b4fee907496d904e3b648d72c26.tar.lz nixpkgs-e3b0f976d44d1b4fee907496d904e3b648d72c26.tar.xz nixpkgs-e3b0f976d44d1b4fee907496d904e3b648d72c26.tar.zst nixpkgs-e3b0f976d44d1b4fee907496d904e3b648d72c26.zip |
shortwave: port away from buildRustPackage
The new setup hooks compose better with Meson setup hooks. Had to add Git since mkDerivation does not bring it in any more.
Diffstat (limited to 'pkgs/applications/audio/shortwave')
-rw-r--r-- | pkgs/applications/audio/shortwave/default.nix | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/applications/audio/shortwave/default.nix b/pkgs/applications/audio/shortwave/default.nix index 96433221e93..36ee6c12eef 100644 --- a/pkgs/applications/audio/shortwave/default.nix +++ b/pkgs/applications/audio/shortwave/default.nix @@ -1,10 +1,11 @@ -{ lib +{ stdenv +, lib , fetchFromGitLab -, cargo , dbus , desktop-file-utils , gdk-pixbuf , gettext +, gitMinimal , glib , gst_all_1 , gtk3 @@ -14,13 +15,12 @@ , openssl , pkg-config , python3 -, rustc , rustPlatform , sqlite , wrapGAppsHook }: -rustPlatform.buildRustPackage rec { +stdenv.mkDerivation rec { pname = "shortwave"; version = "1.1.1"; @@ -32,18 +32,24 @@ rustPlatform.buildRustPackage rec { sha256 = "1vlhp2ss06j41simjrrjg38alp85jddhqyvccy6bhfzm0gzynwld"; }; - cargoSha256 = "181699rlpr5dszc18wg0kbss3gfskxaz9lpxpgsc4yfb6ip89qnk"; + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src; + name = "${pname}-${version}"; + hash = "sha256-0+KEbjTLecL0u/3S9FWf2r2h9ZrgcRTY163kS3NKJqA="; + }; nativeBuildInputs = [ - cargo desktop-file-utils gettext + gitMinimal glib # for glib-compile-schemas meson ninja pkg-config python3 - rustc + rustPlatform.rust.cargo + rustPlatform.cargoSetupHook + rustPlatform.rust.rustc wrapGAppsHook ]; @@ -62,12 +68,6 @@ rustPlatform.buildRustPackage rec { gst-plugins-bad ]); - # Don't use buildRustPackage phases, only use it for rust deps setup - configurePhase = null; - buildPhase = null; - checkPhase = null; - installPhase = null; - postPatch = '' patchShebangs build-aux/meson/postinstall.py ''; |