trying to package mu editor

This commit is contained in:
Matt Nish-Lapidus 2025-01-09 16:48:17 -05:00
parent 72f0a97656
commit 9c2ca6bd55
5 changed files with 41 additions and 18 deletions

24
flake.lock generated
View file

@ -134,11 +134,11 @@
"zig": "zig"
},
"locked": {
"lastModified": 1736372994,
"narHash": "sha256-iCb3+KniUL0Ic1AUkaM3CpO2UGNW6CQSigVzuVUQ8T0=",
"lastModified": 1736455421,
"narHash": "sha256-TsDbQIHOi84hTjb0SSLSyX27P1MA1DVLagX8uik+WGk=",
"owner": "ghostty-org",
"repo": "ghostty",
"rev": "eb40cce45e6593a4065a32681d27c75c4ca3a9c9",
"rev": "6ef757a8f85db7a124d370378850339a899c9e65",
"type": "github"
},
"original": {
@ -212,11 +212,11 @@
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1736366465,
"narHash": "sha256-Fo68EF6p/N9GJyHiAUbXtiE7IJlb3IMjK86LuxFMsRU=",
"lastModified": 1736421950,
"narHash": "sha256-RyrX0WFXxFrYvzHNLTIyuk3NcNl3UBykuYru/P0zW5E=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "7e00856596891850ba5ad4c5ecd2ed74468c08c5",
"rev": "d4aebb947a301b8da8654a804979a738c5c5da50",
"type": "github"
},
"original": {
@ -303,11 +303,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1736283893,
"narHash": "sha256-BG1FfTexFwNty5VhYjaQLMR6CMPfI3QRcaZrFQYu2EM=",
"lastModified": 1736441705,
"narHash": "sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb+mxySIP93o=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "4f339f6be2b61662f957c2ee9eda0fa597d8a6d6",
"rev": "8870dcaff63dfc6647fb10648b827e9d40b0a337",
"type": "github"
},
"original": {
@ -366,11 +366,11 @@
},
"nixpkgs-unstable_2": {
"locked": {
"lastModified": 1736012469,
"narHash": "sha256-/qlNWm/IEVVH7GfgAIyP6EsVZI6zjAx1cV5zNyrs+rI=",
"lastModified": 1736344531,
"narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "8f3e1f807051e32d8c95cd12b9b421623850a34d",
"rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912",
"type": "github"
},
"original": {

View file

@ -53,11 +53,7 @@
inherit (self) outputs;
# Supported systems for your flake packages, shell, etc.
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
# This is a function that generates an attribute by calling a function you
# pass to it, with each system as an argument

View file

@ -23,6 +23,10 @@
inputs.affinity-nix.packages.x86_64-linux.publisher
inputs.affinity-nix.packages.x86_64-linux.designer
guix
mu-edit
just
yt-dlp
erdtree
@ -566,7 +570,7 @@
dconf.settings = {
"org/gnome/desktop/background" = {
picture-options = "none";
primary-color = "#222222";
primary-color = "#333333";
};
"org/gnome/shell/keybindings" = {

View file

@ -0,0 +1,20 @@
{ stdenv, pkgs, fetchurl, lib, unzip, autoPatchelfHook, makeWrapper, appimageTools, ... }:
appimageTools.wrapType2 {
version = "latest";
pname = "mu-edit";
src = fetchurl {
url = "https://github.com/mu-editor/mu/releases/download/v1.2.0/MuEditor-Linux-1.2.0-x86_64.AppImage";
hash = "";
};
extraPkgs = pkgs: [ pkgs.libxcrypt.out ];
meta = with lib; {
description = "mu python editos";
homepage = "https://codewith.mu/";
downloadPage = "https://codewith.mu/en/download";
platforms = platforms.linux;
};
}

View file

@ -73,6 +73,8 @@
egl-wayland
glfw-wayland
libGL.dev
libxcrypt.out
libgcrypt.out
openssl
linuxKernel.packages.linux_6_12.openrazer
];
@ -376,6 +378,7 @@
openssl.out
attr
libssh
libxcrypt.out
bzip2
libxml2
acl
@ -426,7 +429,7 @@
users.users.emenel = {
isNormalUser = true;
description = "emenel";
extraGroups = [ "networkmanager" "wheel" "uinput" "input" "audio" "video" "libvirtd" "nvidia" "cups" "openrazer" "plugdev" ];
extraGroups = [ "networkmanager" "wheel" "uinput" "uucp" "dialout" "input" "audio" "video" "libvirtd" "nvidia" "cups" "openrazer" "plugdev" ];
packages = with pkgs; [
git
];