ripasso-cursive: switch to finalAttrs pattern (#429128)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
installShellFiles,
|
||||
pkg-config,
|
||||
python3,
|
||||
writableTmpDirAsHomeHook,
|
||||
|
||||
# buildInputs
|
||||
libgpg-error,
|
||||
@@ -19,14 +20,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
version = "0.7.0";
|
||||
pname = "ripasso-cursive";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cortex";
|
||||
repo = "ripasso";
|
||||
tag = "release-${version}";
|
||||
tag = "release-${finalAttrs.version}";
|
||||
hash = "sha256-j98X/+UTea4lCtFfMpClnfcKlvxm4DpOujLc0xc3VUY=";
|
||||
};
|
||||
|
||||
@@ -44,6 +45,7 @@ rustPlatform.buildRustPackage rec {
|
||||
pkg-config
|
||||
python3
|
||||
rustPlatform.bindgenHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@@ -54,10 +56,6 @@ rustPlatform.buildRustPackage rec {
|
||||
xorg.libxcb
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# Fails in the darwin sandbox with:
|
||||
# Attempted to create a NULL object.
|
||||
@@ -81,4 +79,4 @@ rustPlatform.buildRustPackage rec {
|
||||
maintainers = with lib.maintainers; [ sgo ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user