✨ add discord-music-presence
Signed-off-by: Xaiya Schumin <d.schumin@proton.me>
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
if has nix_direnv_version; then
|
||||||
|
watch_file modules/flake/shell.nix
|
||||||
|
|
||||||
|
# now we want to load the flake environment
|
||||||
|
use flake
|
||||||
|
fi
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
### Nix template
|
||||||
|
|
||||||
|
# Ignore build outputs from performing a nix-build or `nix build` command
|
||||||
|
result
|
||||||
|
result-*
|
||||||
|
|
||||||
|
# Ignore the configuration folder for Jetbrains IDEs
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Development environment
|
||||||
|
.direnv/
|
||||||
|
|
||||||
|
# Disable vm outputs that are called when starting a vm in this directory
|
||||||
|
*.qcow
|
||||||
|
*.qcow2
|
||||||
Generated
+27
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1778869304,
|
||||||
|
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
description = "Xaiya's packaged packages";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
{ self, nixpkgs }:
|
||||||
|
let
|
||||||
|
inherit (nixpkgs) lib;
|
||||||
|
|
||||||
|
eachSystem =
|
||||||
|
systems: fn:
|
||||||
|
lib.foldl' (
|
||||||
|
acc: system: lib.recursiveUpdate acc (lib.mapAttrs (_: value: { ${system} = value; }) (fn system))
|
||||||
|
) { } systems;
|
||||||
|
|
||||||
|
systems = lib.systems.flakeExposed;
|
||||||
|
in
|
||||||
|
eachSystem systems (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# TODO: add logic for packages
|
||||||
|
packages = {
|
||||||
|
discord-music-presence = pkgs.callPackage ./pkgs/discord-music-presence.nix { };
|
||||||
|
};
|
||||||
|
|
||||||
|
devShells = {
|
||||||
|
default = pkgs.callPackage ./shell.nix { };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchurl,
|
||||||
|
appimageTools,
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
version = "2.3.5";
|
||||||
|
pname = "discord-music-presence";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/ungive/discord-music-presence/releases/download/v${version}/musicpresence-${version}-linux-x86_64.AppImage";
|
||||||
|
hash = "sha256-M7oDxVevspA3SGuHktS8ChQAYopgIqypiVlzyE4uyqI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
appimageContents = appimageTools.extractType1 { inherit src; name = pname; };
|
||||||
|
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 rec {
|
||||||
|
inherit pname version src;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "The Discord music status that works with any media player";
|
||||||
|
homepage = "https://github.com/ungive/discord-music-presence";
|
||||||
|
license = lib.licenses.unfreeRedistributable;
|
||||||
|
maintainers = with lib.maintainers; [ ];
|
||||||
|
mainProgram = "discord-music-presence";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user