chataingne nonsensenes

This commit is contained in:
2026-03-12 18:00:53 +00:00
parent cd9716a7f2
commit e3650d5adb
6 changed files with 64 additions and 248 deletions

View File

@@ -1,51 +1,49 @@
{
description = "A flake for running the Chataigne AppImage with necessary patched dependencies.";
description = "A flake to run a specific AppImage with custom dependencies";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # Modern Nixpkgs
# Pinned Nixpkgs for compatibility (the commit that fixes the CURL_GNUTLS_3 issue)
pinned-nixpkgs = {
url = "github:NixOS/nixpkgs/5171d7b0a9fbaaf216c873622eb5115b6db97957";
flake = false; # Treat as a tarball input, not a flake
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{
self,
nixpkgs,
pinned-nixpkgs,
...
}:
{ self, nixpkgs }:
let
# Supported systems
supportedSystems = [ "x86_64-linux" ];
system = "x86_64-linux"; # Adjust if you're on a different architecture
pkgs = import nixpkgs { inherit system; };
# The main package definition logic is imported as a function
chataigne-appimage-runner = import ./chataigne.nix;
# Define your AppImage wrapper here
myApp = pkgs.appimageTools.wrapType2 {
pname = "my-appimage-app";
version = "1.0.0";
# Function to generate the package set for each system
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
# The source can be a local file or a URL
src = ./Chataigne-linux-x64-1.10.3.AppImage;
# Add specific dependencies the AppImage is missing
extraPkgs =
pkgs: with pkgs; [
lz4
libbsd
(curlWithGnuTls.override { gnutlsSupport = true; })
gnutls
libgnurl
openssl
];
};
in
{
packages = forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
pinnedPkgs = import pinned-nixpkgs { inherit system; };
in
{
chataigne = chataigne-appimage-runner {
inherit pkgs pinnedPkgs;
};
# This allows you to run it via 'nix run'
apps.${system}.default = {
type = "app";
program = "${myApp}/bin/my-appimage-app";
};
# Also expose the default package for convenience
default = self.packages.${system}.chataigne;
}
);
# This allows you to add it to your shell via 'nix develop'
devShells.${system}.default = pkgs.mkShell {
buildInputs = [ myApp ];
};
# The package itself
packages.${system}.default = myApp;
};
}