Merge pull request #255287 from mibmo/pkg/prusa-slicer/finalAttrs

prusa-slicer: use finalAttrs pattern
This commit is contained in:
Weijia Wang 2023-09-24 14:12:19 +02:00 committed by GitHub
commit 73b3498c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ let
});
wxGTK-override' = if wxGTK-override == null then wxGTK-prusa else wxGTK-override;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "prusa-slicer";
version = "2.6.1";
@ -105,7 +105,7 @@ stdenv.mkDerivation rec {
xorg.libX11
] ++ lib.optionals withSystemd [
systemd
] ++ nativeCheckInputs;
] ++ finalAttrs.nativeCheckInputs;
doCheck = true;
nativeCheckInputs = [ gtest ];
@ -167,7 +167,7 @@ stdenv.mkDerivation rec {
owner = "prusa3d";
repo = "PrusaSlicer";
hash = "sha256-t5lnBL7SZVfyR680ZK29YXgE3pag+uVv4+BGJZq40/A=";
rev = "version_${version}";
rev = "version_${finalAttrs.version}";
};
cmakeFlags = [
@ -201,4 +201,4 @@ stdenv.mkDerivation rec {
} // lib.optionalAttrs (stdenv.isDarwin) {
mainProgram = "PrusaSlicer";
};
}
})