nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 dpkg,
6 autoPatchelfHook,
7 webkitgtk_4_1,
8 libsoup_3,
9 glib,
10 gtk3,
11 cairo,
12 dbus,
13 gdk-pixbuf,
14 nix-update-script,
15}:
16
17stdenv.mkDerivation (finalAttrs: {
18 pname = "museeks";
19 version = "0.22.3";
20
21 src = fetchurl {
22 url = "https://github.com/martpie/museeks/releases/download/${finalAttrs.version}/Museeks_${finalAttrs.version}_amd64.deb";
23 hash = "sha256-X9CVPFLCb038/CuPTVYCwdddzDSATbJaVtzodRHQL9o=";
24 };
25
26 nativeBuildInputs = [
27 dpkg
28 autoPatchelfHook
29 ];
30
31 buildInputs = [
32 dbus
33 webkitgtk_4_1
34 libsoup_3
35 gtk3
36 cairo
37 gdk-pixbuf
38 glib
39 (lib.getLib stdenv.cc.cc)
40 ];
41
42 installPhase = ''
43 runHook preInstall
44
45 cp -r usr $out
46
47 runHook postInstall
48 '';
49
50 passthru.updateScript = nix-update-script { };
51
52 meta = {
53 description = "Simple, clean and cross-platform music player";
54 homepage = "https://github.com/martpie/museeks";
55 license = lib.licenses.mit;
56 platforms = [ "x86_64-linux" ];
57 maintainers = with lib.maintainers; [ zendo ];
58 mainProgram = "museeks";
59 };
60})