treewide: use ankama-launcher from nixpkgs

This commit is contained in:
Anthony Rodriguez 2024-12-09 20:29:36 +01:00
parent b17e84fbef
commit d0b4e758b9
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
4 changed files with 39 additions and 72 deletions

View file

@ -115,11 +115,11 @@
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1733390410,
"narHash": "sha256-bM3FIksaYkRloRh3y6GzuUrsJB7EizYtzeCgyftQ9rc=",
"lastModified": 1733754930,
"narHash": "sha256-cKo7Z0F/wk+MOP9uaywbJpYydu+VAgnX4IsCNA4bHz8=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "5f39164f253794b0101d596b7d4a7a0253f4b762",
"rev": "05677f4eeaff9c80b7de6fbf225797679c66369b",
"type": "gitlab"
},
"original": {
@ -335,11 +335,11 @@
]
},
"locked": {
"lastModified": 1733389730,
"narHash": "sha256-KZMu4ddMll5khS0rYkJsVD0hVqjMNHlhTM3PCQar0Ag=",
"lastModified": 1733754861,
"narHash": "sha256-3JKzIou54yjiMVmvgdJwopekEvZxX3JDT8DpKZs4oXY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "65912bc6841cf420eb8c0a20e03df7cbbff5963f",
"rev": "9ebaa80a227eaca9c87c53ed515ade013bc2bca9",
"type": "github"
},
"original": {
@ -448,11 +448,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1733268356,
"narHash": "sha256-1fVGnG7Sai4Z5hXnUxRPiuFWsP9uAKCpHrd6yVeBW5Y=",
"lastModified": 1733744716,
"narHash": "sha256-POZ6fwCKJQINAjRkelxM8KOOuO113JcDdv6MUn6tXy8=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "e62c3c242aae3628161c2411b0fe33674d83c762",
"rev": "84649a90beeb95026bbf63ac88d4f7b659aa5c34",
"type": "github"
},
"original": {
@ -481,11 +481,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1733234028,
"narHash": "sha256-YITDP4Jr+sWuQ29WudIBDci7Mh6Ro70XcwYVkxQ1VVU=",
"lastModified": 1733739952,
"narHash": "sha256-LU4gFrPdB29qzZKJaEoIj87m7N+XaOoFu7POuiiIKhg=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "34ce6d0b02420a8e4a5394cb4c4c603b6efef221",
"rev": "40fa82275cc092d313a9a60d01a2b4e3e8e3f7d3",
"type": "github"
},
"original": {
@ -517,11 +517,11 @@
]
},
"locked": {
"lastModified": 1733024876,
"narHash": "sha256-vy9Q41hBE7Zg0yakF79neVgb3i3PQMSMR7uHPpPywFE=",
"lastModified": 1733629314,
"narHash": "sha256-U0vivjQFAwjNDYt49Krevs1murX9hKBFe2Ye0cHpgbU=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "6e0b7f81367069589a480b91603a10bcf71f3103",
"rev": "f1e477a7dd11e27e7f98b646349cd66bbabf2fb8",
"type": "github"
},
"original": {
@ -532,11 +532,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1733217105,
"narHash": "sha256-fc6jTzIwCIVWTX50FtW6AZpuukuQWSEbPiyg6ZRGWFY=",
"lastModified": 1733481457,
"narHash": "sha256-IS3bxa4N1VMSh3/P6vhEAHQZecQ3oAlKCDvzCQSO5Is=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "cceee0a31d2f01bcc98b2fbd591327c06a4ea4f9",
"rev": "e563803af3526852b6b1d77107a81908c66a9fcf",
"type": "github"
},
"original": {
@ -603,11 +603,11 @@
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1733220138,
"narHash": "sha256-Yh5XZ9yVurrcYdNTSWxYgW4+EJ0pcOqgM1043z9JaRc=",
"lastModified": 1733384649,
"narHash": "sha256-K5DJ2LpPqht7K76bsxetI+YHhGGRyVteTPRQaIIKJpw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bcb68885668cccec12276bbb379f8f2557aa06ce",
"rev": "190c31a89e5eec80dd6604d7f9e5af3802a58a13",
"type": "github"
},
"original": {
@ -635,11 +635,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1733212471,
"narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
"lastModified": 1733581040,
"narHash": "sha256-Qn3nPMSopRQJgmvHzVqPcE3I03zJyl8cSbgnnltfFDY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "55d15ad12a74eb7d4646254e13638ad0c4128776",
"rev": "22c3f2cf41a0e70184334a958e6b124fb0ce3e01",
"type": "github"
},
"original": {
@ -651,11 +651,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1733212471,
"narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
"lastModified": 1733581040,
"narHash": "sha256-Qn3nPMSopRQJgmvHzVqPcE3I03zJyl8cSbgnnltfFDY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "55d15ad12a74eb7d4646254e13638ad0c4128776",
"rev": "22c3f2cf41a0e70184334a958e6b124fb0ce3e01",
"type": "github"
},
"original": {
@ -714,11 +714,11 @@
},
"nixpkgs_8": {
"locked": {
"lastModified": 1731890469,
"narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=",
"lastModified": 1733097829,
"narHash": "sha256-9hbb1rqGelllb4kVUCZ307G2k3/UhmA8PPGBoyuWaSw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5083ec887760adfe12af64830a66807423a859a7",
"rev": "2c15aa59df0017ca140d9ba302412298ab4bf22a",
"type": "github"
},
"original": {
@ -872,11 +872,11 @@
"systems": "systems_5"
},
"locked": {
"lastModified": 1733323593,
"narHash": "sha256-SxEcsqy0FLrAdYpXLyB2ISVhIyN949bfqnoYl0sjpcE=",
"lastModified": 1733740319,
"narHash": "sha256-FR23czmy63J7F/3kvTqeC3i8F2hNNT3hcXiZJ7c3csA=",
"owner": "notashelf",
"repo": "nvf",
"rev": "66d0a8120625474020f5106c436595d226f412b9",
"rev": "0c90a7b1c691893a139aa9db94ec0f6e6b78e2f5",
"type": "github"
},
"original": {
@ -895,11 +895,11 @@
]
},
"locked": {
"lastModified": 1733410572,
"lastModified": 1733578387,
"narHash": "sha256-XkMZGeqg0GCRoSXvMcaHP7bdvWPRZxCK1sw1ASsc16E=",
"owner": "nix-community",
"repo": "plasma-manager",
"rev": "92721d7402526599366d00e242813798e9914970",
"rev": "2a64e173f1effdcc86e25cba0601e8feedf89115",
"type": "github"
},
"original": {
@ -3010,11 +3010,11 @@
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1733222881,
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
"lastModified": 1733662930,
"narHash": "sha256-9qOp6jNdezzLMxwwXaXZWPXosHbNqno+f7Ii/xftqZ8=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
"rev": "357cda84af1d74626afb7fb3bc12d6957167cda9",
"type": "github"
},
"original": {

View file

@ -18,6 +18,6 @@
pkgs.yad
inputs.self.packages.${pkgs.system}.bolt-launcher
inputs.self.packages.${pkgs.system}.ankama-launcher
pkgs.ankama-launcher
];
}

View file

@ -1,32 +0,0 @@
{
appimageTools,
fetchurl,
makeDesktopItem,
...
}: let
version = "1.0.0";
pname = "ankama-launcher";
src = fetchurl {
url = "https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage";
sha256 = "sha256-K/qe/qxMfcGWU5gyEfPdl0ptjTCWaqIXMCy4O8WEKCQ=";
};
desktopItem = makeDesktopItem {
desktopName = "Ankama Launcher";
name = pname;
exec = pname;
icon = pname;
};
appimageContents = appimageTools.extract {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mkdir -p $out/share/applications $out/share/icons/hicolor/256x256/apps
install -Dm644 ${appimageContents}/usr/share/icons/hicolor/256x256/apps/zaap*.png $out/share/icons/hicolor/256x256/apps/${pname}.png
install -Dm644 ${desktopItem}/share/applications/* $out/share/applications
'';
}

View file

@ -12,5 +12,4 @@
})
.callPackage
./bolt-launcher.nix {};
ankama-launcher = pkgs.callPackage ./ankama-launcher.nix {};
}