Compare commits

..

2 Commits

Author SHA1 Message Date
623b7997e7 update version 2026-02-02 18:28:54 -05:00
f9fd5d357d formatting changes
via nixfmt
2026-01-17 16:04:07 -05:00

View File

@@ -6,16 +6,29 @@
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*"; nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
}; };
outputs = { self, flake-schemas, nixpkgs }: outputs =
{
self,
flake-schemas,
nixpkgs,
}:
let let
supportedSystems = [ "x86_64-linux" ]; supportedSystems = [ "x86_64-linux" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
}); }
in { );
in
{
schemas = flake-schemas.schemas; schemas = flake-schemas.schemas;
devShells = forEachSupportedSystem ({ pkgs }: { devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
curl curl
@@ -25,20 +38,25 @@
nixpkgs-fmt nixpkgs-fmt
]; ];
}; };
}); }
);
packages = forEachSupportedSystem ({ pkgs }: { packages = forEachSupportedSystem (
default = let { pkgs }:
{
default =
let
pname = "musicpresence"; pname = "musicpresence";
version = "2.3.4"; version = "2.3.5";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://github.com/ungive/discord-music-presence/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage"; url = "https://github.com/ungive/discord-music-presence/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage";
hash = "sha256-S8VHs81wbVv5Z1lncSIYJDUHRfUBl40WU+P3QTQROp0="; hash = "sha256-M7oDxVevspA3SGuHktS8ChQAYopgIqypiVlzyE4uyqI=";
}; };
appimageContents = pkgs.appimageTools.extract { inherit pname version src; }; appimageContents = pkgs.appimageTools.extract { inherit pname version src; };
in pkgs.appimageTools.wrapType2 { in
pkgs.appimageTools.wrapType2 {
inherit pname version src; inherit pname version src;
nativeBuildInputs = with pkgs; [ makeWrapper ]; nativeBuildInputs = with pkgs; [ makeWrapper ];
@@ -60,6 +78,7 @@
changelog = "https://github.com/ungive/discord-music-presence/releases/tag/v${version}"; changelog = "https://github.com/ungive/discord-music-presence/releases/tag/v${version}";
}; };
}; };
}); }
);
}; };
} }