Remove spotify overlay

This commit is contained in:
Dave Gallant
2021-03-28 21:57:22 -04:00
parent 516c255eb2
commit 265bebad3f
2 changed files with 6 additions and 32 deletions

12
flake.lock generated
View File

@@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1616815633,
"narHash": "sha256-U9DO04sb+8Qy13EJckxOJIxT2Vlc/8i089XkfBnXH0M=",
"lastModified": 1616918239,
"narHash": "sha256-Z9hL54J/M6sWSa2UqDDVCgsNsA1MhUEt0dQ803+24I8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "7b30fc99227e6c7c331a01a9fb87599e4cd8cee1",
"rev": "c1761366b522595ff0dda47d7ba79d5242ecb31e",
"type": "github"
},
"original": {
@@ -38,11 +38,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1616527350,
"narHash": "sha256-VkMevY2WLU+K7T/P4wVj18Ms8zyeRfp05ILf556m5Y8=",
"lastModified": 1616779317,
"narHash": "sha256-+mUTkYguFMNGb57JkwauDgjcq65RnOLUhDo4mhb8qAI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d3f7e969b9860fb80750147aeb56dab1c730e756",
"rev": "ad47284f8b01f587e24a4f14e0f93126d8ebecda",
"type": "github"
},
"original": {

View File

@@ -5,30 +5,4 @@ final: prev: {
srv = prev.callPackage ./srv { };
vpngate = prev.callPackage ./vpngate { };
spotify-unwrapped =
# Get latest edge:
# curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/spotify?channel=edge' | jq '.download_url,.version,.last_updated'
prev.spotify-unwrapped.overrideAttrs (oldAttrs: {
version = "1.1.52.687.gf5565fe5";
src = prev.fetchurl {
url =
"https://api.snapcraft.io/api/v1/snaps/download/pOBIoZ2LrCB3rDohMxoYGnbN14EHOgD7_44.snap";
sha512 =
"sha512-HIN8n25n4gSlsZQBGr9N+qaIxhN3xh8+2AttTzeAT1DQTVDIhAZ4UclGDURpYVpY1zuCJPvHG7knUkJ4hukXGQ==";
};
unpackPhase = ''
runHook preUnpack
unsquashfs "$src" '/usr/share/spotify' '/usr/bin/spotify' '/meta/snap.yaml'
cd squashfs-root
if ! grep -q '${final.spotify-unwrapped.version}' meta/snap.yaml; then
echo "Package version differs from version found in snap metadata:"
grep 'version: ' meta/snap.yaml
echo "While the nix package specifies: ${final.spotify-unwrapped.version}."
echo "You probably chose the wrong revision or forgot to update the nix version."
exit 1
fi
runHook postUnpack
'';
});
}