mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 09:12:28 +00:00
Remove spotify overlay
This commit is contained in:
12
flake.lock
generated
12
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1616815633,
|
"lastModified": 1616918239,
|
||||||
"narHash": "sha256-U9DO04sb+8Qy13EJckxOJIxT2Vlc/8i089XkfBnXH0M=",
|
"narHash": "sha256-Z9hL54J/M6sWSa2UqDDVCgsNsA1MhUEt0dQ803+24I8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "7b30fc99227e6c7c331a01a9fb87599e4cd8cee1",
|
"rev": "c1761366b522595ff0dda47d7ba79d5242ecb31e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -38,11 +38,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1616527350,
|
"lastModified": 1616779317,
|
||||||
"narHash": "sha256-VkMevY2WLU+K7T/P4wVj18Ms8zyeRfp05ILf556m5Y8=",
|
"narHash": "sha256-+mUTkYguFMNGb57JkwauDgjcq65RnOLUhDo4mhb8qAI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d3f7e969b9860fb80750147aeb56dab1c730e756",
|
"rev": "ad47284f8b01f587e24a4f14e0f93126d8ebecda",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@@ -5,30 +5,4 @@ final: prev: {
|
|||||||
srv = prev.callPackage ./srv { };
|
srv = prev.callPackage ./srv { };
|
||||||
vpngate = prev.callPackage ./vpngate { };
|
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
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user