[TASK] Remove custom mkDerivate
This commit is contained in:
parent
c12558ec4b
commit
bfc1093688
@ -1,52 +1,6 @@
|
||||
# In deiner home.nix
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
# Jameica/Hibiscus Custom Package
|
||||
jameica = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "jameica";
|
||||
version = "2.12.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://www.willuhn.de/products/jameica/releases/current/jameica/jameica-linux64-${version}.zip";
|
||||
# Hash ermitteln mit: nix-prefetch-url <URL>
|
||||
sha256 = "d5abbd1f8ce4c799e50669e6f4cb7deebf7af3343891e24ff36377ac4ea4192a";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.unzip pkgs.makeWrapper ];
|
||||
buildInputs = [ pkgs.jre ];
|
||||
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/opt/jameica
|
||||
cp -r jameica/* $out/opt/jameica/ || true
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper $out/opt/jameica/jameica.sh $out/bin/jameica \
|
||||
--prefix PATH : ${pkgs.jre}/bin
|
||||
|
||||
mkdir -p $out/share/applications
|
||||
cat > $out/share/applications/jameica.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Name=Jameica
|
||||
Exec=$out/bin/jameica
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=$out/opt/jameica/jameica-icon.png
|
||||
Categories=Office;Finance;
|
||||
EOF
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Jameica Homebanking";
|
||||
homepage = "https://www.willuhn.de/products/jameica/";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
home.stateVersion = "25.11";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user