chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / do / dopamine / package.nix
blob10a45cbb2b42120f9eec6b59f17154ee5662ebd7
2   lib,
3   fetchurl,
4   appimageTools,
5   nix-update-script,
6 }:
7 appimageTools.wrapType2 rec {
8   pname = "dopamine";
9   version = "3.0.0-preview.34";
11   src = fetchurl {
12     url = "https://github.com/digimezzo/dopamine/releases/download/v${version}/Dopamine-${version}.AppImage";
13     hash = "sha256-K4dDYYzo2oMAZvlb25cQuh1G187efSyJfAA6jdCKaT0=";
14   };
16   extraInstallCommands =
17     let
18       contents = appimageTools.extract { inherit pname version src; };
19     in
20     ''
21       install -Dm644 ${contents}/dopamine.desktop $out/share/applications/dopamine.desktop
22       substituteInPlace $out/share/applications/dopamine.desktop \
23         --replace-fail 'Exec=AppRun' 'Exec=dopamine'
24       cp -r ${contents}/usr/share/icons $out/share
25     '';
27   passthru.updateScript = nix-update-script { extraArgs = [ "--version=unstable" ]; };
29   meta = {
30     changelog = "https://github.com/digimezzo/dopamine/blob/${version}/CHANGELOG.md";
31     description = "Audio player that keeps it simple";
32     homepage = "https://github.com/digimezzo/dopamine";
33     license = lib.licenses.gpl3Only;
34     mainProgram = "dopamine";
35     maintainers = with lib.maintainers; [ Guanran928 ];
36     platforms = [ "x86_64-linux" ];
37     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
38   };