your-editor: refactor derivation, move arg out of top-level, use strictDeps and structuredAttrs

This commit is contained in:
Guy Chronister
2026-07-17 17:11:50 -05:00
parent 423e709b6f
commit 309ae27d75
2 changed files with 8 additions and 5 deletions
@@ -1,20 +1,23 @@
{
lib,
stdenv,
gccStdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
gccStdenv.mkDerivation (finalAttrs: {
pname = "your-editor";
version = "1601";
src = fetchFromGitHub {
owner = "your-editor";
repo = "yed";
rev = finalAttrs.version;
sha256 = "sha256-pa9ibXyuWq7jRYsn3bGdqvLWbwQO2VYsP6Bk+BayQ8o=";
tag = finalAttrs.version;
hash = "sha256-pa9ibXyuWq7jRYsn3bGdqvLWbwQO2VYsP6Bk+BayQ8o=";
};
strictDeps = true;
__structuredAttrs = true;
installPhase = ''
runHook preInstall
patchShebangs install.sh
+1 -1
View File
@@ -9795,7 +9795,7 @@ with pkgs;
ydiff = with python3.pkgs; toPythonApplication ydiff;
your-editor = callPackage ../applications/editors/your-editor { stdenv = gccStdenv; };
your-editor = callPackage ../applications/editors/your-editor { };
youtube-dl = with python3Packages; toPythonApplication youtube-dl;