mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
42 lines
844 B
Nix
42 lines
844 B
Nix
{ stdenv
|
|
, pname
|
|
, meta
|
|
, fetchurl
|
|
, undmg
|
|
, lib
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
inherit pname;
|
|
|
|
version = "1.2.40.599.g606b7f29";
|
|
|
|
src = if stdenv.hostPlatform.isAarch64 then (
|
|
fetchurl {
|
|
url = "https://web.archive.org/web/20240622065234/https://download.scdn.co/SpotifyARM64.dmg";
|
|
hash = "sha256-mmjxKYmsX0rFlIU19JOfPbNgOhlcZs5slLUhDhlON1c=";
|
|
})
|
|
else (
|
|
fetchurl {
|
|
url = "https://web.archive.org/web/20240622065548/https://download.scdn.co/Spotify.dmg";
|
|
hash = "sha256-hvS0xnmJQoQfNJRFsLBQk8AJjDOzDy+OGwNOq5Ms/O0=";
|
|
});
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
cp -r *.app $out/Applications
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = meta // {
|
|
maintainers = with lib.maintainers; [ matteopacini ];
|
|
};
|
|
}
|