formatting changes
via nixfmt
This commit is contained in:
39
flake.nix
39
flake.nix
@@ -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,10 +38,14 @@
|
|||||||
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.4";
|
||||||
|
|
||||||
@@ -38,7 +55,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
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}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user