your-editor: refactor derivation, move arg out of top-level, use strictDeps and structuredAttrs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user