Hi,
I was surprised to find that Kraken Desktop hasn’t been packaged yet. Is there a particular reason for this? How would I go about requesting this program to be added?
Best
xe
Hi,
I was surprised to find that Kraken Desktop hasn’t been packaged yet. Is there a particular reason for this? How would I go about requesting this program to be added?
Best
xe
In general Nixpkgs will never be fully complete; but the project has documentation explaining how you can open a pull request to add a new package, if you’d like to do so! nixpkgs/pkgs/README.md at 32a1561a8b5b2f8d860fa4d3d7ed861f0c3dcb6e · NixOS/nixpkgs · GitHub
Because no one cared enough to package it before, that’s pretty much always the reason (unless there is some obvious issue like a security concern). Plus a closed-source crypto app sounds suspicious already.
You don’t, but as said above, you can send a pull request yourself, provided that it follows nixpkgs guidelines.
I’m not convinced it’s a particularly good fit for nixpkgs. Anyway, if you want to maintain it and can convince someone to merge it, here is a start (x86 linux):
{
alsa-lib,
autoPatchelfHook,
dbus,
fetchurl,
libxkbcommon,
stdenv,
unzip,
wayland,
}:
stdenv.mkDerivation {
name = "kraken-desktop";
version = "1.10.2";
src = fetchurl {
url = "https://desktop-downloads.kraken.com/latest/kraken-x86_64-unknown-linux-gnu.zip";
hash = "sha256-iMcSsU6K+fd85eQ/sN1OjTylgpYET72gtS+tLjqVcKw=";
};
nativeBuildInputs = [
autoPatchelfHook
unzip
];
buildInputs = [
alsa-lib
dbus
stdenv.cc.cc
];
runtimeDependencies = [
wayland
libxkbcommon
];
dontUnpack = true;
installPhase = ''
mkdir -p $out/{bin,share/applications}
unzip $src
mv kraken_desktop $out/bin
mv kraken.desktop $out/share/applications
'';
}
blah blah usual disclaimers. It starts on my machine. It will at least need some meta attributes, and a system check, and the rest of the hashes for various platforms. I’m not going to do any of that ![]()
This seems problematic; given that the URL contains latest, isn’t the hash pretty much guaranteed to break soon?
Probably. That’s why I said it’s a start. I’ve invested 5 minutes and I’m not investing more ![]()
Seems simple enough. I’ll play around with this locally, thank you.