trying to package mu editor

This commit is contained in:
Matt Nish-Lapidus 2025-01-10 08:10:23 -05:00
parent 9687a29f97
commit 9b943e484f
5 changed files with 24 additions and 19 deletions

12
flake.lock generated
View file

@ -9,11 +9,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1735978448, "lastModified": 1736488937,
"narHash": "sha256-wkeC/4GfMCJYkJWu4lbZ3rVsFuIUQeSe+SQJe8gwYGs=", "narHash": "sha256-RELMEuDFx9fKx5h3fWvpTR73tFAUZ0iILbjwHLVOs8w=",
"owner": "mrshmllow", "owner": "mrshmllow",
"repo": "affinity-nix", "repo": "affinity-nix",
"rev": "13f56fc924e73ed96c2974db8daa60fba3ac620d", "rev": "6fbbf794f2707531ae2de3c5ec20084fed49e13d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -212,11 +212,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1736421950, "lastModified": 1736508663,
"narHash": "sha256-RyrX0WFXxFrYvzHNLTIyuk3NcNl3UBykuYru/P0zW5E=", "narHash": "sha256-ZOaGwa+WnB7Zn3YXimqjmIugAnHePdXCmNu+AHkq808=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d4aebb947a301b8da8654a804979a738c5c5da50", "rev": "2532b500c3ed2b8940e831039dcec5a5ea093afc",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -69,6 +69,7 @@
nixosConfigurations = { nixosConfigurations = {
eddie = nixpkgs.lib.nixosSystem { eddie = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { specialArgs = {
inherit inputs outputs; inherit inputs outputs;
}; };

View file

@ -25,7 +25,7 @@
guix guix
mu-edit uv
just just
yt-dlp yt-dlp

View file

@ -1,22 +1,25 @@
{ pkgs, fetchurl, lib, appimageTools, ... }: { pkgs, python3Packages, fetchurl, lib, ... }:
appimageTools.wrapType2 { python3Packages.buildPythonApplication rec {
version = "latest";
pname = "mu-edit"; pname = "mu-edit";
version = "latest";
src = fetchurl { src = fetchurl {
url = "https://github.com/mu-editor/mu/releases/download/v1.2.0/MuEditor-Linux-1.2.0-x86_64.AppImage"; url = "https://github.com/mu-editor/mu.git";
hash = ""; sha256 = "";
}; };
extraPkgs = pkgs: [ build-system = with python3Packages; [
pkgs.libxcrypt.out setuptools
]; ];
# dependencies = with python3Packages; [
# ];
meta = with lib; { meta = with lib; {
description = "mu python editos"; homepage = "https://github.com/mu-editor";
homepage = "https://codewith.mu/"; description = "mu editor";
downloadPage = "https://codewith.mu/en/download";
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View file

@ -73,8 +73,6 @@
egl-wayland egl-wayland
glfw-wayland glfw-wayland
libGL.dev libGL.dev
libxcrypt.out
libgcrypt.out
openssl openssl
linuxKernel.packages.linux_6_12.openrazer linuxKernel.packages.linux_6_12.openrazer
]; ];
@ -367,6 +365,9 @@
programs.appimage = { programs.appimage = {
enable = true; enable = true;
binfmt = true; binfmt = true;
package = pkgs.appimage-run.override {
extraPkgs = pkgs: [ pkgs.libxcrypt.out ];
};
}; };
programs.nix-ld.enable = true; programs.nix-ld.enable = true;