diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:31:50 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:32:25 +0100 |
commit | b7baf40e099b4215181fe7b0c63083b12ef2c7fb (patch) | |
tree | a6efabd31d05b6d0a36624729e80377bbbfb0149 /nixpkgs/pkgs/by-name/sp | |
parent | 710028664e26e85cb831a869b3da9f6993902255 (diff) | |
parent | 0799f514b1cd74878174939df79ac60ca5036673 (diff) | |
download | nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.gz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.bz2 nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.lz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.xz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.zst nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/by-name/sp')
-rw-r--r-- | nixpkgs/pkgs/by-name/sp/speakersafetyd/package.nix | 47 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/sp/spfft/package.nix | 9 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/sp/spicetify-cli/package.nix | 6 |
3 files changed, 55 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/by-name/sp/speakersafetyd/package.nix b/nixpkgs/pkgs/by-name/sp/speakersafetyd/package.nix new file mode 100644 index 000000000000..4351ae55176e --- /dev/null +++ b/nixpkgs/pkgs/by-name/sp/speakersafetyd/package.nix @@ -0,0 +1,47 @@ +{ stdenv +, lib +, rustPlatform +, fetchCrate +, pkg-config +, alsa-lib +, rust +}: + +rustPlatform.buildRustPackage rec { + pname = "speakersafetyd"; + version = "0.1.9"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-I1fL1U4vqKxPS1t6vujMTdi/JAAOCcPkvUqv6FqkId4="; + }; + cargoHash = "sha256-Adwct+qFhUsOIao8XqNK2zcn13DBlQNA+X4aRFeIAXM="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ alsa-lib ]; + + postPatch = '' + substituteInPlace speakersafetyd.service --replace "/usr" "$out" + substituteInPlace Makefile --replace "target/release" "target/${rust.lib.toRustTargetSpec stdenv.hostPlatform}/$cargoBuildType" + # creating files in /var does not make sense in a nix package + substituteInPlace Makefile --replace 'install -dDm0755 $(DESTDIR)/$(VARDIR)/lib/speakersafetyd/blackbox' "" + ''; + + installFlags = [ + "BINDIR=$(out)/bin" + "UNITDIR=$(out)/lib/systemd/system" + "UDEVDIR=$(out)/lib/udev/rules.d" + "SHAREDIR=$(out)/share" + "TMPFILESDIR=$(out)/lib/tmpfiles.d" + ]; + + dontCargoInstall = true; + + meta = with lib; { + description = "A userspace daemon written in Rust that implements an analogue of the Texas Instruments Smart Amp speaker protection model"; + homepage = "https://github.com/AsahiLinux/speakersafetyd"; + maintainers = with maintainers; [ yuka ]; + license = licenses.mit; + platforms = platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/by-name/sp/spfft/package.nix b/nixpkgs/pkgs/by-name/sp/spfft/package.nix index 55b20defd53c..832b9d75a5f8 100644 --- a/nixpkgs/pkgs/by-name/sp/spfft/package.nix +++ b/nixpkgs/pkgs/by-name/sp/spfft/package.nix @@ -34,13 +34,14 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake gfortran - ]; + ] ++ lib.optional (gpuBackend == "cuda") cudaPackages.cuda_nvcc; buildInputs = [ fftw - ] - ++ lib.optional (gpuBackend == "cuda") cudaPackages.cudatoolkit - ++ lib.optionals (gpuBackend == "rocm") [ + ] ++ lib.optionals (gpuBackend == "cuda") [ + cudaPackages.libcufft + cudaPackages.cuda_cudart + ] ++ lib.optionals (gpuBackend == "rocm") [ rocmPackages.clr rocmPackages.rocfft rocmPackages.hipfft diff --git a/nixpkgs/pkgs/by-name/sp/spicetify-cli/package.nix b/nixpkgs/pkgs/by-name/sp/spicetify-cli/package.nix index 8d074163672c..711b697afd08 100644 --- a/nixpkgs/pkgs/by-name/sp/spicetify-cli/package.nix +++ b/nixpkgs/pkgs/by-name/sp/spicetify-cli/package.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "spicetify-cli"; - version = "2.29.1"; + version = "2.30.0"; src = fetchFromGitHub { owner = "spicetify"; repo = "spicetify-cli"; rev = "v${version}"; - hash = "sha256-fgecZn0/CWQFH4Tnm5kqOOvWlE1jzGvG6LxVN7KryPg="; + hash = "sha256-kQcAn5/NzzH+i24Ss6GaQEycazraE03R4tqMhxKROcY="; }; - vendorHash = "sha256-alNUJ+ejwZPvefCTHt0/NWSAIt4MFzbPmkMinMrpe2M="; + vendorHash = "sha256-T7aUjzb69ZAnpLCpHv5C6ZyUktfC8Zt94rIju8QplWI="; ldflags = [ "-s -w" |