whatstyle: migrate to by-name, modernize derivation (#517448)
This commit is contained in:
+11
-7
@@ -1,25 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
clang-unwrapped,
|
||||
llvmPackages,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
let
|
||||
inherit (llvmPackages) clang-unwrapped;
|
||||
in
|
||||
|
||||
python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pname = "whatstyle";
|
||||
version = "0.2.0";
|
||||
format = "setuptools";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mikr";
|
||||
repo = "whatstyle";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-4LCZAEUQFPl4CBPeuqsodiAlwd8uBg+SudF5d+Vz4Gc=";
|
||||
};
|
||||
|
||||
# Fix references to previous version, to avoid confusion:
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace-fail 0.1.9 ${version}
|
||||
substituteInPlace whatstyle.py --replace-fail 0.1.9 ${version}
|
||||
substituteInPlace setup.py --replace-fail 0.1.9 ${finalAttrs.version}
|
||||
substituteInPlace whatstyle.py --replace-fail 0.1.9 ${finalAttrs.version}
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
@@ -36,4 +40,4 @@ python3.pkgs.buildPythonApplication rec {
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
})
|
||||
@@ -5861,10 +5861,6 @@ with pkgs;
|
||||
'';
|
||||
};
|
||||
|
||||
whatstyle = callPackage ../development/tools/misc/whatstyle {
|
||||
inherit (llvmPackages) clang-unwrapped;
|
||||
};
|
||||
|
||||
whisper-cpp-vulkan = whisper-cpp.override {
|
||||
vulkanSupport = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user