nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, fetchFromGitHub
3, rustPlatform
4, pkg-config
5, makeWrapper
6, alsa-lib
7, lame
8, openssl
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "downonspot";
13 version = "unstable-2021-10-13";
14
15 src = fetchFromGitHub {
16 owner = "oSumAtrIX";
17 repo = "DownOnSpot";
18 rev = "9d78ea2acad4dfe653a895a1547ad0abe7c5b47a";
19 sha256 = "03g99yx9sldcg3i6hvpdxyk70f09f8kfj3kh283vl09b1a2c477w";
20 };
21
22 cargoSha256 = "0k200p6wgwb60ax1r8mjn3aq08zxpkqbfqpi3b25zi3xf83my44d";
23
24 # fixes: error: the option `Z` is only accepted on the nightly compiler
25 RUSTC_BOOTSTRAP = 1;
26
27 nativeBuildInputs = [
28 pkg-config
29 makeWrapper
30 ];
31
32 buildInputs = [
33 openssl
34 alsa-lib
35 lame
36 ];
37
38 meta = with lib; {
39 description = "A Spotify downloader written in rust";
40 homepage = "https://github.com/oSumAtrIX/DownOnSpot";
41 license = licenses.gpl3Only;
42 platforms = platforms.linux;
43 maintainers = with maintainers; [ onny ];
44 };
45}